Skip to content

Fix pathological performance in def splitLines#409

Merged
lihaoyi merged 1 commit intomasterfrom
lihaoyi-patch-2
Nov 20, 2025
Merged

Fix pathological performance in def splitLines#409
lihaoyi merged 1 commit intomasterfrom
lihaoyi-patch-2

Conversation

@lihaoyi
Copy link
Copy Markdown
Member

@lihaoyi lihaoyi commented Nov 20, 2025

This was causing O(n^2) performance slowdowns when diffing large numbers of lines, so replacing it with an imperative implementation that should be O(n)

@lihaoyi lihaoyi merged commit 848ee11 into master Nov 20, 2025
4 checks passed
@lihaoyi lihaoyi deleted the lihaoyi-patch-2 branch November 20, 2025 11:21
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