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

Remove caching of scopes #2047

Merged
merged 1 commit into from
Apr 11, 2019
Merged

Conversation

rgrinberg
Copy link
Member

This is similar to the case of the caching that was present in File_tree.t. I've benchmarked this change on the ocaml platform, and if it has an impact, it's infact negative as this PR seems to offer a small but measurable speed up. And in fact, the map lookup introduced here could be even faster if we had some sort of a trie based map of paths.

I'm aware that there's some duplication introduced between this PR and #2043. I will address it once both PR's are merged.

It does not seem to buy us anything performance wise

Signed-off-by: Rudi Grinberg <rudi.grinberg@gmail.com>
@rgrinberg rgrinberg requested review from a user and aalekseyev April 11, 2019 05:09
@rgrinberg rgrinberg requested a review from emillon as a code owner April 11, 2019 05:09
Copy link
Collaborator

@aalekseyev aalekseyev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW, I can't measure any improvement. :-)

@rgrinberg
Copy link
Member Author

Yeah, I wasn't counting on any :). I doubt this would ever be a bottleneck in any real world build.

@rgrinberg rgrinberg merged commit d98e5a4 into ocaml:master Apr 11, 2019
@rgrinberg rgrinberg deleted the remove-scope-cache branch April 11, 2019 16:21
@rgrinberg rgrinberg restored the remove-scope-cache branch April 20, 2019 05:45
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

Successfully merging this pull request may close these issues.

2 participants