Remove hashbrown/inline-more feature #34
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is no justifiable reason to force this addition here I think? It's meant purely as something the binary crate can enable if wanted if it makes more sense for performance in in their case.
#[inline]
is not a universal win, very often it can worsen performance and severely balloon binary sizes for no reason.This feature flag simply adds the
#[inline]
attribute to a lot more methods within hashbrown, which in this case has the primary effect of lowering the LLVM inline threshold for relatively cold codepaths. TBH there is not a lot of reason to do this, hashbrown is already quite aggressive with explicit inlining hints without this feature and it only really makes sense to look at on an application per application basis.IME it does usually look very good on microbenchmarks and seems like "free performance", but that line of reasoning falls apart completely in any sort of real binary with more than a couple hundred lines of code being executed on repeat.