mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-24 10:56:16 -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?! |
||
|---|---|---|
| .. | ||
| Areas | ||
| Encounters | ||
| Enums | ||
| Evolutions | ||
| Formatting | ||
| Learnset | ||
| Moves | ||
| Restrictions | ||
| RNG | ||
| Structures | ||
| Tables | ||
| Verifiers | ||
| BinLinker.cs | ||
| Breeding.cs | ||
| BulkAnalysis.cs | ||
| BulkGenerator.cs | ||
| Core.cs | ||
| LegalityAnalysis.cs | ||
| LegalityAnalyzers.cs | ||
| MoveList.cs | ||
| MoveListSuggest.cs | ||