Replies: 2 comments 4 replies
-
That API is basically designed to work only in a Dynamic Worker (not Shared, not Service, just Worker) due its ability to block behind the scene while locking the OS file system. None of our current offer/APIs uses the leading tab/main pattern as that would require a lot of orchestration but it's not excluded we might just do that in the near future ... meanwhile, all our APIs to deal with the OS native FS or the browser IndexedDB feature should "just work", so I wonder what is it exactly that you are after, as that OPFS discussion is something I am aware of due SQLite on browsers integration, but use cases around it are kinda obscure to me ... so, do yu mind expanding on that? |
Beta Was this translation helpful? Give feedback.
-
OK, so the native FS is supported only by Chromium browser and even not available on Android so no so usable up today for what i am doing. IndexedDB is so slow on big "files" on my tests a fiction novel text size on medium android device gets lots of seconds to be saved, reads are fine but not sure if gets lots of "files" what will be. So for persistence and better performance as well better device/browser support seems OPFS is kinda good solution. So because I need some solution aniway, made one till there are official one, no pretending to be good :) as i am not professional developer: |
Beta Was this translation helpful? Give feedback.
-
As pyscript already has fs module it will be great to have official way to use the Origin Private File System in the browser. It is much faster for big files as well more secure than indexedDB api, and can be made to work on all browsers including mobile devices.
Beta Was this translation helpful? Give feedback.
All reactions