Skip to content

Conversation

@AdamGS
Copy link
Contributor

@AdamGS AdamGS commented Mar 28, 2025

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:
Screenshot 2025-03-28 at 16 50 08

child level info for chunked layout
Screenshot 2025-03-28 at 16 50 49
and struct layout:
Screenshot 2025-03-28 at 16 51 01

@codspeed-hq
Copy link

codspeed-hq bot commented Mar 28, 2025

CodSpeed Performance Report

Merging #2833 will improve performances by 24.46%

Comparing adamg/more-tui-hacking (4d5a557) with develop (acd7af8)

Summary

⚡ 4 improvements
✅ 789 untouched benchmarks

Benchmarks breakdown

Benchmark BASE HEAD Change
chunked_varbinview_canonical_into[(1000, 10)] 187.8 µs 150.9 µs +24.46%
chunked_varbinview_opt_canonical_into[(1000, 10)] 212.4 µs 176.3 µs +20.51%
take_map[(0.05, 0.5)] 292.3 µs 258.2 µs +13.19%
take_map[(0.1, 0.5)] 358.8 µs 312.1 µs +14.97%

Comment on lines -231 to -232
// 0th child of a ChunkedLayout is the chunk stats array.
// The rest of the chunks are child arrays
Copy link
Contributor Author

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 🥳

@AdamGS AdamGS changed the title [WIP] Some more TUI things More TUI info Mar 28, 2025
@AdamGS AdamGS requested a review from a10y March 28, 2025 16:54
@AdamGS AdamGS changed the title More TUI info Layout size info in TUI Mar 28, 2025
@AdamGS AdamGS changed the title Layout size info in TUI Layout segments size info in TUI Mar 28, 2025
@AdamGS AdamGS marked this pull request as ready for review March 28, 2025 16:54
}
}

pub fn collect_segment_ids(root_layout: &Layout) -> (Vec<SegmentId>, Vec<SegmentId>) {
Copy link
Contributor Author

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.

@AdamGS
Copy link
Contributor Author

AdamGS commented Mar 28, 2025

I was waiting for a review, so I also added a stat display for the flat chunks.
Screenshot 2025-03-28 at 17 27 17

@AdamGS AdamGS merged commit 6c1801f into develop Mar 28, 2025
27 checks passed
@AdamGS AdamGS deleted the adamg/more-tui-hacking branch March 28, 2025 17:43
AdamGS added a commit that referenced this pull request Mar 28, 2025
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"
/>
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.

3 participants