mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-17 23:52:29 +00:00
Replace the recursive spread-based implementation with an iterative push+reverse approach. The recursive version created a new array at each level of recursion via spread, resulting in O(d^2) array copies where d is the conversation depth. The iterative version walks from the target message to the root, pushes each message, and reverses once at the end for O(d) total work. No behavioral change - same input produces the same output array. |
||
|---|---|---|
| .. | ||
| apis | ||
| components | ||
| constants | ||
| i18n | ||
| pyodide | ||
| stores | ||
| types | ||
| utils | ||
| workers | ||
| constants.ts | ||
| dayjs.js | ||
| emoji-groups.json | ||
| emoji-shortcodes.json | ||
| index.ts | ||
| shortcuts.ts | ||