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

convert fnv types into std #1847

Merged
merged 2 commits into from Feb 27, 2022
Merged

convert fnv types into std #1847

merged 2 commits into from Feb 27, 2022

Conversation

AustinJ235
Copy link
Member

The fnv crate hasn't seen some updates in some time. The std implementation has improved greatly since fnv was introduced, making it on pair or even better than fnv. Overall this removes a dependency and might bring some performance gain. I wasn't able to measure any sort of significant performance gain from this change. One of my applications went from a 246 microsecond cpu time down to 230 microseconds.

- Replaced `fnv` crate's `FnvHashMap`, `FnvHashSet` & `FnvHasher` with their `std` counterparts.

There shouldn't be any breaking changes compared to what is released. I believe descriptors_count() was the only public point where this was exposed and that change has not been released.

@Rua
Copy link
Contributor

Rua commented Feb 27, 2022

Thanks!

@Rua Rua merged commit 2e562b5 into vulkano-rs:master Feb 27, 2022
Rua added a commit that referenced this pull request Feb 27, 2022
@AustinJ235 AustinJ235 deleted the hashmap branch June 27, 2022 07:03
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.

None yet

2 participants