mirror of
https://github.com/Horizontal42/summarum.git
synced 2026-11-10 23:51:59 +03:00
Replaced the `.join(" ")` array concatenations in the registry's phrase deduplication logic with an element-wise comparison using `.every()`. The previous logic repeatedly allocated new strings and iterated through arrays for every element in the collision list, leading to redundant memory allocations during registry creation. This change reduces the average time to execute `buildRegistry()` across 5 iterations from ~864ms to ~304ms, representing an ~65% performance improvement.
Co-authored-by: Horizontal42 <75383519+Horizontal42@users.noreply.github.com>
|
||
|---|---|---|
| .. | ||
| engine | ||
| ui | ||
| extensions.test.ts | ||
| extensions.ts | ||
| i18n.test.ts | ||
| i18n.ts | ||
| logger.test.ts | ||
| logger.ts | ||
| main.test.ts | ||
| main.ts | ||
| storage.test.ts | ||
| storage.ts | ||
| updater.test.ts | ||
| updater.ts | ||
| workspace.test.ts | ||
| workspace.ts | ||