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

Remove redundant loading of .osrm.cell_metrics #6019

Merged
merged 1 commit into from
Apr 24, 2021

Conversation

mjjbell
Copy link
Member

@mjjbell mjjbell commented Apr 24, 2021

Issue

When using process memory, MLD cell metrics are loaded twice from .osrm.cell_metrics - once when loading static data, and again when loading updatable data. The former appears to be the mistake, as .osrm.cell_metrics is only listed in GetUpdatableFiles.

Impact

For germany-latest.osm.pbf, saves between 100-200ms when loading osrm-routed

Tasklist

Requirements / Relations

When using process memory, MLD cell metrics are loaded twice from
.osrm.cell_metrics - once when loading static data, and again when
loading updatable data. The former appears to be the mistake,
as .osrm.cell_metrics is only listed in `GetUpdatableFiles`.
@mjjbell
Copy link
Member Author

mjjbell commented Apr 24, 2021

Also loaded here:

if (boost::filesystem::exists(config.GetPath(".osrm.cell_metrics")))

@mjjbell mjjbell merged commit 4ac827a into Project-OSRM:master Apr 24, 2021
@mjjbell mjjbell deleted the mbell/redudant_metric_loading branch April 24, 2021 20:24
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