Skip to content

Simplify range merge algorithm on FileResponse#3138

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

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

Conversation

@Kludex
Copy link
Owner

@Kludex Kludex commented Feb 14, 2026

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant