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

Cache callbacks for long running processes #1566

Open
essen opened this issue May 5, 2022 · 4 comments
Open

Cache callbacks for long running processes #1566

essen opened this issue May 5, 2022 · 4 comments

Comments

@essen
Copy link
Member

essen commented May 5, 2022

See erlang/otp#5831 for details as to why it's faster to do that. Might not be worth doing in many parts of Cowboy, but some like Websocket or the loop handlers may benefit from this.

@geeksilva97
Copy link
Contributor

I'd like to give it a try. Sounds like a nice challenge

@essen
Copy link
Member Author

essen commented Apr 22, 2024

The hard part is figuring out how to measure the improvements (or lack thereof). It might not be worth outside of receiving Erlang messages (the network is likely slower).

@geeksilva97
Copy link
Contributor

Maybe we could measure the execution time with those Erlang profiling tools?

@essen
Copy link
Member Author

essen commented Apr 22, 2024

Profiling tools are useful but the deciding factors for performance improvements in Cowboy are latency and throughput so for Websocket for example this means being able to make the clients either receive data faster than before, or receive more data than before, for specific workloads. Currently the only such measurements we have are the run times of the Autobahn test suite.

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

2 participants