mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-24 08:26:14 -05:00
Regex objects aren't cheap, and the RegexCache has DefaultMaxCacheSize = 15. We're checking 4,000 regexes for each unique string, so just keep the created regexes around instead of cycling new through the cache. +4MB passive consumption, but each IsFiltered call no longer generates >4MB of discarded objects. My unit tests run >25% faster now... nice?! |
||
|---|---|---|
| .. | ||
| Editing | ||
| Game | ||
| Legality | ||
| MysteryGifts | ||
| PersonalInfo | ||
| PKM | ||
| Resources | ||
| Ribbons | ||
| Saves | ||
| Util | ||
| app.config | ||
| PKHeX.Core.csproj | ||