Skip to content

Conversation

@Skylion007
Copy link
Collaborator

@Skylion007 Skylion007 commented Jan 17, 2026

Description

  • Updates various STL specialization function with noexcept. This allows STL to optimize the hashing in unordered_maps. Otherwise, these has values are stored in the map instead of recomputed which adds memory and hurts locality. Surprisingly, this change is fully ABI compatible too since the noexcept signature is erased before it's mangled.

Suggested changelog entry:

  • optimize pybind11 internal hash functions for STL maps.

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