Skip to content

Conversation

@RyanBGG
Copy link
Contributor

@RyanBGG RyanBGG commented Nov 21, 2025

Realized there are more section need to be optimize like #3182

Any though?

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 21, 2025

CodSpeed Performance Report

Merging #3186 will not alter performance

Comparing RyanBGG:expend3182 (2bf03f7) with main (7f5a6a0)

Summary

✅ 173 untouched

.map(DirEntry::into_path)
.collect()
.collect();
files.sort();
Copy link
Member

Choose a reason for hiding this comment

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

It is better for file names to be in order of reading

for (key, value) in storage.iter().take(5) {
let mut sorted_storage: Vec<_> = storage.iter().collect();
sorted_storage.sort_by_key(|(key, _)| *key);
for (key, value) in sorted_storage.iter().take(5) {
Copy link
Member

Choose a reason for hiding this comment

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

This is nice, i would even remove that 5 slot limit and print all of them

for (key, value) in storage.iter().take(5) {
let mut sorted_storage: Vec<_> = storage.iter().collect();
sorted_storage.sort_by_key(|(key, _)| *key);
for (key, value) in sorted_storage.iter().take(5) {
Copy link
Member

Choose a reason for hiding this comment

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

Makes sense, would remove 5 limit, for tests we want to read them all

Copy link
Member

@rakita rakita left a comment

Choose a reason for hiding this comment

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

Makes sense, left few nit comments

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