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

lower server memory usage #984

Open
goto-bus-stop opened this issue Sep 17, 2024 · 2 comments
Open

lower server memory usage #984

goto-bus-stop opened this issue Sep 17, 2024 · 2 comments

Comments

@goto-bus-stop
Copy link
Member

it takes about 100MB RSS right now? it seems like a lot for what it does. and it's a lot for being hosted on a small shared server with several other projects.

there's a few things to try:

  • run it with bun?
  • swap out some dependencies?
  • rewrite it in go or rust...
    • go is probably more appropriate, but rust would be easier for me :)
@goto-bus-stop
Copy link
Member Author

goto-bus-stop commented Sep 17, 2024

erm, okay, locally bun and deno take like 2×.

sodium WASM takes up many megabytes in node.js.
that would be more efficient in a compiled language that doesn't keep a copy of the source text around and includes only required functions.

@goto-bus-stop
Copy link
Member Author

ah, in the past i was also considering putting it on a platform like cloudflare workers, which would move the problem away from my small vps : )
it might still be the easiest thing to do.

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

No branches or pull requests

1 participant