-
Notifications
You must be signed in to change notification settings - Fork 177
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: work around Event.sync perf issue. #219
Conversation
Extra eyeballs appreciated, it's very late over here :-/ |
@mfp: Do you have some idea, from your discussions and experience, what the impact of resolving the two Mantis issues (1, 2) will be? As in, is there a nice way to resolve them, such that If performance will likely still be a problem, we should definitely merge this. If it won't be a problem anymore, we can still merge this, but I'm only about 75% convinced in that case – because it's a vanishing problem given the target of 4.03.1, and because it adds code. In that case, further arguments are welcome :) |
cc @hcarty since he is working on a potential replacement or alternative to @hcarty: would be interested about your experience/opinion on |
I haven't run into this largely because the cases where I've used That is likely to change soon though so I would be happy to see performance improvements here! My main question is if this should live in Lwt or as a separate module/library in opam, used by Lwt. |
On Tue, Jun 21, 2016 at 04:59:08PM -0700, Anton wrote:
The moment these issues are resolved, this PR will become unnecessary. Note that this PR addresses the performance issue as far as I'd say there are two arguments for merging this, and one and a half against: pros:
cons:
Mauricio Fernández |
On Fri, Jul 01, 2016 at 06:39:53PM -0700, Hezekiah M. Carty wrote:
The fix is specific to Lwt_preemptive's use of Event -- it does not solve the Mauricio Fernández |
Ok, I am convinced :)
Assuming you mean module The change is not so trivial actually, because it replaces a queue (channel) with a single cell (the mutable option), but it appears to be correct. Rebased on
I'm adding a comment, in a follow-on commit, about the potential performance issue, above the implementation of Thank you! |
Refer to
http://caml.inria.fr/mantis/view.php?id=7158
#218.
mfp/ocaml-sqlexpr#13
Fix #218.