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

Lwt_preemptive.detach forces a full major GC run every 2500 calls at most #218

Closed
mfp opened this issue Feb 28, 2016 · 0 comments
Closed

Comments

@mfp
Copy link
Collaborator

mfp commented Feb 28, 2016

Lwt_preemptive uses Event channels which under the hood allocate one condition variable per Event.sync. The parameters given to caml_alloc_custom when creating the condition variable indicate that at most 5000 values can be left unreclaimed. Heavy GC load ensues.

See mfp/ocaml-sqlexpr#13

Also, should a (performance) bug be filed against OCaml's Event module?

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