Skip to content

Simplify range merge algorithm on FileResponse#3138

Merged
Kludex merged 2 commits into
mainfrom
fix/range-merge-performance
Feb 14, 2026
Merged

Simplify range merge algorithm on FileResponse#3138
Kludex merged 2 commits into
mainfrom
fix/range-merge-performance

Conversation

@Kludex

@Kludex Kludex commented Feb 14, 2026

Copy link
Copy Markdown
Owner

The previous implementation used a nested loop to merge overlapping ranges, which is O(n²). Replace it with a sort + single-pass merge.

@Kludex Kludex changed the title Simplify range merge algorithm on FileResponse Simplify range merge algorithm on FileResponse Feb 14, 2026
@Kludex Kludex enabled auto-merge (squash) February 14, 2026 10:49
@Kludex Kludex disabled auto-merge February 14, 2026 10:50
@Kludex Kludex enabled auto-merge (squash) February 14, 2026 10:51
@Kludex Kludex merged commit 361dfb2 into main Feb 14, 2026
6 checks passed
@Kludex Kludex deleted the fix/range-merge-performance branch February 14, 2026 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant