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

Test performance of CPU-bound Luv programs based on Luv.Integration #2

Closed
aantron opened this issue Nov 26, 2018 · 1 comment
Closed

Comments

@aantron
Copy link
Owner

aantron commented Nov 26, 2018

See ocsigen/lwt#622 for a description of an analogous problem in Lwt.

Basically, for promise libraries driven by Luv that choose to defer most callbacks to the next tick, there is a risk that select/etc. is called between every tick. If the program is CPU-bound (no I/O completes most of the time), that is a very wasteful call to a syscall on every tick. It will considerably slow down a Luv-based loop, relative to an ordinary synchronous loop.

@aantron aantron added this to the 0.5.1 milestone Jan 18, 2020
@aantron aantron modified the milestones: 0.5.1, 0.5.2 Mar 13, 2020
@aantron aantron removed this from the 0.5.x milestone Jan 14, 2021
@aantron
Copy link
Owner Author

aantron commented Feb 16, 2021

Luv.Integration is not in Luv anymore and has never been released. It turned out to have been more of a demo.

@aantron aantron closed this as completed Feb 16, 2021
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