PKHeX/PKHeX.Core/Legality/Restrictions
Kurt 927ccee613 Cache all created regexes
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?!
2021-06-03 17:24:45 -07:00
..
EvolutionRestrictions.cs Minor tweaks 2021-06-03 12:04:19 -07:00
GBRestrictions.cs Minor tweaks 2021-05-18 13:29:55 -07:00
ItemRestrictions.cs Use more expression return style 2021-01-01 17:08:49 -08:00
Locale3DS.cs More tweaks 2021-02-19 10:52:26 -08:00
Memories.cs Add gen6 key item arg logic 2021-01-31 10:53:41 -08:00
Vivillon3DS.cs Target type'd new 2020-12-21 17:17:56 -08:00
WordFilter.cs Cache all created regexes 2021-06-03 17:24:45 -07:00