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

refactor: no need for LRU for interval (2.2m parsed/s) #683

Merged
merged 1 commit into from
Oct 23, 2020

Conversation

benjie
Copy link
Member

@benjie benjie commented Oct 23, 2020

Description

Remove unnecessary LRU; now we've optimised parseInterval there's no need to wrap it in an LRU. I've benchmarked parseInterval at 2.2 million parses per second, so it's unlikely an LRU is going to make a big difference here (and in fact might hurt performance?)

Performance impact

Slightly reduces memory usage.

Security impact

None

@benjie benjie merged commit 234d547 into v4 Oct 23, 2020
@benjie benjie deleted the no-lru-for-interval branch October 23, 2020 10:39
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.

1 participant