mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 16:51:59 +03:00
In `src/ui/search.ts`, numeric threshold searches previously called `doc.text.split("\n")` eagerly on every open document. This commit changes `lines` to be lazily allocated only if an actual numeric search match is found, eliminating unnecessary memory allocations and loop overhead on documents that do not match.
Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| app.css | ||
| editor.ts | ||
| export.test.ts | ||
| export.ts | ||
| search.test.ts | ||
| search.ts | ||
| sparkline.test.ts | ||
| sparkline.ts | ||