Files
open-webui/src
Classic298 1850a985b5 perf: replace O(n²) unshift with O(n) push+reverse in buildMessages (#22280)
Array.unshift() is O(n) per call because it shifts all existing
elements. In a loop building an n-element array, this makes the
total cost O(n²). Replace with push() + reverse() which is O(n)
total. Produces the identical message ordering.
2026-03-06 14:02:57 -06:00
..
2026-02-25 20:17:39 -06:00
…
2026-02-22 18:58:47 -06:00
2026-02-28 21:28:59 -06:00