Skip to content

Conversation

@philnik777
Copy link
Contributor

@philnik777 philnik777 commented Nov 24, 2025

We've seen in quite a few cases while optimizing __tree's copy construction that _DetachedTreeCache is actually quite slow and not necessarily an optimization at all. This patch removes the code, since it's now only used by operator=(initializer_list), which should be quite cold code. We might look into actually optimizing it again in the future, but I doubt an optimization will be small enough compared to the likely speedup in real-world code this would give.

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