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

Speedup OpamSystem.read by 8% #5896

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kit-ty-kate
Copy link
Member

@kit-ty-kate kit-ty-kate commented Mar 26, 2024

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

@kit-ty-kate kit-ty-kate marked this pull request as ready for review March 28, 2024 13:24
@kit-ty-kate kit-ty-kate force-pushed the speedup-read branch 3 times, most recently from d6e5a37 to 5774d1c Compare April 2, 2024 16:05
@kit-ty-kate kit-ty-kate changed the title Speedup OpamSystem.read Speedup OpamSystem.read by 8% Apr 2, 2024
@kit-ty-kate kit-ty-kate added this to the 2.3.0~alpha milestone Jul 2, 2024
@kit-ty-kate
Copy link
Member Author

Local test using the test added in #5900 vs. In_channel.input_all:

  • pre-PR: 0.21s
  • string_of_channel = In_channel.input_all: 0.14s
  • this-PR: 0.14s

@rjbou rjbou self-requested a review July 9, 2024 08:58
@kit-ty-kate kit-ty-kate force-pushed the speedup-read branch 2 times, most recently from 69841b7 to 22321df Compare July 24, 2024 20:28
@kit-ty-kate
Copy link
Member Author

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

@kit-ty-kate kit-ty-kate marked this pull request as draft July 24, 2024 20:57
@kit-ty-kate kit-ty-kate removed this from the 2.3.0~alpha milestone Jul 24, 2024
@kit-ty-kate kit-ty-kate added this to the 2.4.0~alpha1 milestone Sep 25, 2024
@kit-ty-kate kit-ty-kate removed the request for review from rjbou October 17, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants