hhmx.de

Föderation EN Mi 17.07.2024 18:51:41

Wow reading this somehow makes me wanna cry 😭 notion.so/blog/how-we-sped-up- (via HN news.ycombinator.com/item?id=4)

- "Using SQLite improved page navigation times by 20 percent in all modern browsers."
- "Multiple tabs might be open, and each tab had a dedicated Web Worker that had an active connection to the SQLite database."
- "we loaded WASM SQLite completely asynchronously and ensured that it didn’t block the page load."

Föderation EN Mi 17.07.2024 19:29:34

@cheeaun Why did you say not WASM SQLite? Just curious, not a challenge 🙂

Föderation EN Mi 17.07.2024 21:13:39

@hallenbeck @cheeaun Not to put words in their mouth, but I guess they'd prefer it to be native, for better performance (and it also makes sense because browsers usually already have SQLite embedded).

Föderation EN Mi 17.07.2024 23:24:52

@art_codesmith @hallenbeck @cheeaun
I could also see the near future when loading 5 different sites in separate tabs loads 5 slightly different versions of WASM-SQLite. You thought browsers were bloated now? 🤪

On the bright side, however, using WASM would mean that devs aren't obligated to code around broken native implementations, or missing features on some versions. This may be worth the resource impact.

Föderation EN Mi 17.07.2024 23:25:56

@wikicliff @hallenbeck @cheeaun To be fair, you probably still have it now with 5 different versions of React.

Föderation EN Mi 17.07.2024 23:27:05

@art_codesmith @hallenbeck @cheeaun
So when do we get WASM-React? 😜