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

Write a VFS in rust to avoid relying on the JS one #20

Open
insipx opened this issue Dec 20, 2024 · 0 comments
Open

Write a VFS in rust to avoid relying on the JS one #20

insipx opened this issue Dec 20, 2024 · 0 comments
Labels
epic Epic task

Comments

@insipx
Copy link
Collaborator

insipx commented Dec 20, 2024

If we write a VFS in rust and compile to webassembly, we can share that pointer with the sqlite to register the VFS and use it. This would be a performance boost since we don't need to cross the JS barrier for storage I/O operations, and would allow us to customize the VFS from rust rather than JS, allowing for more complex operations (maybe encryption, async, etc, allow finer-grained connection management?)

Roy has an extensive index of examples in the wa-sqlite repository, which can be used to model the Rust VFS: Example VFS's

@insipx insipx added the epic Epic task label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
epic Epic task
Projects
None yet
Development

No branches or pull requests

1 participant