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

a few optimizations #318

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

OneOfOne
Copy link

This a few minor optimizations I applied to my local fork, thought I'd share back.

the biggest one is findCaseInsensitivePath:

#before
BenchmarkTreeFindCaseInsensitivePath-32           121699              9786 ns/op             320 B/op         26 allocs/op
# after
BenchmarkTreeFindCaseInsensitivePath-32           123482              9771 ns/op             176 B/op         25 allocs/op

similark pushed a commit to similarweb/httprouter that referenced this pull request May 9, 2023
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