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

user log speedup / remove redundant computation #526

Merged
merged 4 commits into from
Apr 28, 2022

Conversation

yakra
Copy link
Contributor

@yakra yakra commented Apr 27, 2022

This is a do-over of #524.

Closes yakra#220.
Closes #523.
Closes #522.


C++ Region management is on the backburner.
There are a couple different paths forward here, and I'm not 100% sold on either. Kicking that can down the road.


User log speedup

Small improvement on Linux; big one for FreeBSD.
For just FreeBSD, the chart below includes an intermediate step:
the initial conversion of std::string to_write to std::vector<std::pair<Route*, double>> chop_mi
(not included for Linux, as the lines are already so close together it'd just add clutter).
After that, the next step was to have format_clinched_mi format & return a char*. Same idea as what #515 did with clinchedby_code in traveled graphs.
User526-18
Alternate version with 2x the vertical scale, to compare against this one from #520. And before that, there was #513.

Future?
There may be more improvements to be had by playing around with the std::unordered_maps or converting to std::maps.
Sometimes small changes make big results (see #517). But OTOH, we could be approaching the point of diminishing returns.
Call me cautiously optimistic.

@yakra
Copy link
Contributor Author

yakra commented Apr 27, 2022

Doing one last comparison.

@yakra
Copy link
Contributor Author

yakra commented Apr 27, 2022

Good to go.

@jteresco jteresco merged commit 41910bb into TravelMapping:master Apr 28, 2022
@jteresco
Copy link
Contributor

Bringing this in for the site update that I'm about to launch. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

redundant active/preview mileage redundant active/preview system counts vestigial std::string** update;
2 participants