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

Provide a feature flag that optimizes for a single threaded runtime. #52

Open
zacharygolba opened this issue Oct 21, 2024 · 2 comments
Open

Comments

@zacharygolba
Copy link
Owner

Consider the user deploying via on the Gateway 2000 mentioned in the comments of #51. I think a multi-threaded first approach is something that will stay long term provided the community responds well to it.

I do recognize the potential of a web server framework as lightweight as Via being beneficial for use in embedded devices or recycled hardware. With that being said–offering a feature flag that removes some Send + Sync requirements, avoiding unnecessary clones and / or atomic operations is something we should prioritize.

While this may sound more performant that our current approach. It is only an optimization for users deploying their server to hardware with a single CPU core or older processors that do not support optimized instructions for atomic operations. We'll likely want to introduce tracing a benchmark the multi-threaded version extensively before starting any work here.

@zacharygolba
Copy link
Owner Author

I'm going to prioritize this right after documentation.

@zacharygolba
Copy link
Owner Author

Going to start work on this right after #67.

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