mirror of
https://github.com/storytold/egui.git
synced 2026-11-16 19:40:24 +00:00
bf5ac0dac1
In debug builds, the `Debug`-name caches for `Id` and `IdSalt` grew forever. Scrolling a huge text log filled them with millions of entries. Each entry now remembers the last pass it was seen in. When a map holds more than 10k entries, `Context::end_pass` purges entries not seen in the current or previous pass. The threshold keeps names of long-lived ids (created once at startup) in small apps, and avoids flaky tests from concurrent contexts. * [x] I have followed the instructions in the PR template 🤖 Generated with [Claude Code](https://claude.com/claude-code)