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

Improve runtime hashing performance #191

Merged
merged 1 commit into from
Dec 3, 2020
Merged

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Dec 3, 2020

This improves the performance of common runtime hashing operations.

Improves the performance of the aoc_2020_1b benchmark by ~10% since this utilizes instance fns heavily.

Before:

test aoc_2020_1b ... bench:     668,483 ns/iter (+/- 20,836)

After:

test aoc_2020_1b ... bench:     582,291 ns/iter (+/- 12,307)

Thanks to @tgolsson for highlighting this!

@udoprog udoprog force-pushed the better-runtime-hashing branch 3 times, most recently from b455fa6 to df09fa0 Compare December 3, 2020 12:32
@udoprog udoprog merged commit 44a86a0 into main Dec 3, 2020
@udoprog udoprog deleted the better-runtime-hashing branch December 3, 2020 12:41
@udoprog udoprog added changelog Issue has been added to the changelog enhancement New feature or request labels Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog Issue has been added to the changelog enhancement New feature or request performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant