Hacker News new | ask | show | jobs
by Gab_CV 2725 days ago
Actually, indexedDB is used to cache/store the whole .pk4, but using small chunks of data (50MB or so). This works well in practice.

The best would be that all browsers support the Chrome Filesystem API, but that's not for now

1 comments

Thats cool! Any reason you do it in multiple distinct chunks vs mutating a single chunk?

I'm assuming the time required to store and request a massive blob gets excessive at some point, but were there any other reasons?

It is because IndexedDB maximum row size is not that big, and depends on the browsers
Wow I had no idea! I'll have to look into that, thanks!