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

fs:node is SLOW!!! #1

Closed
gornostay25 opened this issue Jul 12, 2022 · 3 comments
Closed

fs:node is SLOW!!! #1

gornostay25 opened this issue Jul 12, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@gornostay25
Copy link
Contributor

Hi, fs:node is slow, use Bun special method Bun.file()
check my code https://github.com/gornostay25/svelte-adapter-bun/blob/master/src/sirv.js
It's was modified Sirv library for bun.
check send method
https://github.com/gornostay25/svelte-adapter-bun/blob/074a26d3b0c300d3d536ad1e9d29e4c77a72209f/src/sirv.js#L63-L103

@jakobbouchard jakobbouchard added the enhancement New feature or request label Jul 12, 2022
@jakobbouchard jakobbouchard self-assigned this Jul 12, 2022
@jakobbouchard
Copy link
Owner

Oh, great! I'll do that tonight!

@gornostay25
Copy link
Contributor Author

Good luck 😃

@jakobbouchard
Copy link
Owner

I just released v0.1.4 which removes the use of node:fs completely and reduces the number of system calls.
It also removes the only dependency the project had, in favour of Bun.file(file).type.

Thanks a lot for the tip btw!

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

No branches or pull requests

2 participants