mirror of
https://github.com/kwsch/PKHeX
synced 2025-01-05 09:08:45 +00:00
927ccee613
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?! |
||
---|---|---|
.. | ||
EvolutionRestrictions.cs | ||
GBRestrictions.cs | ||
ItemRestrictions.cs | ||
Locale3DS.cs | ||
Memories.cs | ||
Vivillon3DS.cs | ||
WordFilter.cs |