mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 16:51:59 +03:00
Caching the RegExp compilation for highlighting variables under the cursor avoids creating an assignment RegExp and a highlight RegExp constantly when typing, saving roughly ~40% of the overhead time for this function as tested. |
||
|---|---|---|
| .. | ||
| app.css | ||
| editor.ts | ||
| export.test.ts | ||
| export.ts | ||
| search.test.ts | ||
| search.ts | ||
| sparkline.test.ts | ||
| sparkline.ts | ||