Skip to content

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