-
Notifications
You must be signed in to change notification settings - Fork 375
Speedup OpamSystem.read by 8% #5896
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
base: master
Are you sure you want to change the base?
Conversation
fb39b66 to
0585799
Compare
d6e5a37 to
5774d1c
Compare
5774d1c to
e5dac9f
Compare
|
Local test using the test added in #5900 vs.
|
69841b7 to
22321df
Compare
|
Mmh, the benchmark shows an increase of the time taken for some reason now... :/ I'm converting this PR to draft while we're figuring this out |
4e80cdf to
ff1c7ac
Compare
|
One advantage of using For example if Related to #6521 |
ff1c7ac to
67aa0ea
Compare
67aa0ea to
17c0571
Compare
9fa9934 to
196e098
Compare
196e098 to
b25cd25
Compare
| (rule | ||
| (enabled_if (>= %{ocaml_version} "4.14")) | ||
| (action (copy opamCompatInChannel.real.ml opamCompatInChannel.ml))) | ||
| (rule | ||
| (enabled_if (< %{ocaml_version} "4.14")) | ||
| (action (copy opamCompatInChannel.compat.ml opamCompatInChannel.ml))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A pretty nifty alternative can be found in ocaml-re: ocaml/ocaml-re@a35565d
Noticed while working on #5892
In this particular case, this reduced all of the performance degradation of this version of diff.
I'm opening this PR separately hoping that our benchmark system is heavy enough in reads to show the difference.
Requires #5900 to be merged first