Skip to content
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

Limit the number of shrink to fit #146

Merged
merged 1 commit into from
Oct 25, 2023

Conversation

antoine-de
Copy link
Collaborator

This is not very important, but it seems a waste to do it for each stop time. This reduce a bit the loading time, but not in a really important way (tested on the Ile de france mobilité dataset).

Copy link
Collaborator

@Tristramg Tristramg 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 to me.
Was there a measurable improvement or dit it just bother you?

src/gtfs.rs Outdated Show resolved Hide resolved
src/gtfs.rs Show resolved Hide resolved
@antoine-de
Copy link
Collaborator Author

not really a measurable improvement, I gained 1s over 16 between the best of 3 runs, but there was 5s discrepancy between the runs of the same version with the same dataset...

This is not very important, but it seems a waste to do it for each stop
time. This reduce a bit the loading time, but not in a really important
way (tested on the Ile de france mobilité dataset).
@antoine-de antoine-de merged commit e625570 into rust-transit:main Oct 25, 2023
2 checks passed
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