Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexedDb: Store blobs as array buffers if necessary #266

Closed
wants to merge 2 commits into from

Conversation

simolus3
Copy link
Owner

Safari in private browsing windows doesn't appear to support reading and writing Blob instances to IndexedDB properly. Since we can fairly easily support ArrayBuffers on the read path in addition to blobs, we run a feature detection to see if we should write the array buffer directly instead of wrapping it in a Blob.

A question is if we should always store blobs as array buffers and avoid the conversion (there's no strong benefit of blobs for memory efficiency here since we have to load the entire file system into memory either way).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant