-
Notifications
You must be signed in to change notification settings - Fork 108
Layout segments size info in TUI #2833
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
CodSpeed Performance ReportMerging #2833 will improve performances by 24.46%Comparing Summary
Benchmarks breakdown
|
| // 0th child of a ChunkedLayout is the chunk stats array. | ||
| // The rest of the chunks are child arrays |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't do that anymore 🥳
| } | ||
| } | ||
|
|
||
| pub fn collect_segment_ids(root_layout: &Layout) -> (Vec<SegmentId>, Vec<SegmentId>) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally this should be somewhere in vortex-layout, but @gatesn is making some changes somewhere and I don't want to conflict him.
Thought I pushed this change into #2833 🤦. Display isn't perfect yet but its a step in the right direction. <img width="1559" alt="Screenshot 2025-03-28 at 17 47 19" src="https://github.com/user-attachments/assets/e5133a64-672b-4c32-a0c6-d1f239955583" />

I'm looking into compression/file size and this is just thing I'm adding as I go. The main change here is restoring size info by traversing the segments to get all segments contained within a layout.

Top layout info:
child level info for chunked layout


and struct layout: