Skip to content

Support elision for flat line trees#300

Closed
gschlager wants to merge 1 commit intosplitwise:mainfrom
gschlager:elision-line-count
Closed

Support elision for flat line trees#300
gschlager wants to merge 1 commit intosplitwise:mainfrom
gschlager:elision-line-count

Conversation

@gschlager
Copy link
Contributor

No description provided.

Copy link
Collaborator

@jas14 jas14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @gschlager ! I'm hoping to sit down and review this on Friday. In the meantime, you can address the lint failures so the rest of the test suite runs.

@gschlager gschlager force-pushed the elision-line-count branch 2 times, most recently from 803800d to e35c46a Compare February 10, 2026 18:51
jas14 added a commit that referenced this pull request Feb 14, 2026
While reviewing #300, I noticed some unrelated clean-up opportunities in
`TieredLinesElider`.

Most importantly, `Pane#padded` was essentially a no-op. This PR gets
rid of it, and simplifies up the call stack through
`TieredLinesElider#panes`.

Less importantly, and more for my own satisfaction,
`#filter_out_boxes_fully_contained_in_others` was $O(n^2)$; assuming
sorting is sub-quadratic, it's also now sub-quadratic.
Copy link
Collaborator

@jas14 jas14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I'll add a CHANGELOG entry and merge. Thanks again!

I may as a follow-up look for a way to avoid this carve-out for lines that are all at the top level.

@jas14
Copy link
Collaborator

jas14 commented Feb 14, 2026

Merged in f70439b. :)

@jas14 jas14 closed this Feb 14, 2026
jas14 added a commit to gschlager/super_diff that referenced this pull request Feb 14, 2026
While reviewing splitwise#300, I noticed some unrelated clean-up opportunities in
`TieredLinesElider`.

Most importantly, `Pane#padded` was essentially a no-op. This PR gets
rid of it, and simplifies up the call stack through
`TieredLinesElider#panes`.

Less importantly, and more for my own satisfaction,
`#filter_out_boxes_fully_contained_in_others` was $O(n^2)$; assuming
sorting is sub-quadratic, it's also now sub-quadratic.
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.

2 participants