You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perf: Convert keyword/operator arrays to Sets in Monarch tokenizer (fixes#582)
- Added lazy WeakMap<MonarchLanguageRules, Map<string, Set<string>>> cache
- resolveCases now uses Set.has() (O(1)) instead of Array.includes() (O(n))
- Sets are created lazily on first access per rules object
0 commit comments