perf: use Set instead of Array for constant lookups in utils.js (#18250)
Several constant lookup tables in `utils.js` were arrays searched with `Array.prototype.includes`, which is O(n). They're queried often — per attribute during attribute setup and SSR, per event during event delegation, and per identifier during compilation. Switching them to `Set` makes each lookup O(1) without changing any public behaviour.
M
Mathias Picker committed
e6110d31c5be64f4964cda40abe1dd0bedd49eb9
Parent: fe9ab93
Committed by GitHub <noreply@github.com>
on 5/26/2026, 12:45:29 PM