osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Remove guidance data to reduce RAM usage?

Open jcoupey opened this issue 5 years ago • 4 comments

I'm usually not interested in route information apart from duration, distance and geometry, so I'm always using OSRM with steps=false. My understanding is that the matching data used to generate the steps array in response (RouteStep.name and RouteStep.ref values among others) is still loaded in RAM. Depending on the extract size, this may amount to a lot of unused data.

First of all, I'd like to figure whether trying not to load this data is worth the trouble. I can see osrm.names is not that big, but osrm.icd is. Is there a way to evaluate the potential gain here?

jcoupey avatar Sep 23 '20 09:09 jcoupey

Done in https://github.com/Project-OSRM/osrm-backend/pull/6045

SiarheiFedartsou avatar Aug 23 '22 21:08 SiarheiFedartsou

#6045 is indeed related as it does save some calculation on route path data but as stated there: this PR is a first step towards making the loading of these datasets optional and making these changes unlocks the optional loading of data.

Optionally loading guidance data (or other parts of the data preprocessed by OSRM) is probably easier to implement now but it's still not possible.

jcoupey avatar Aug 28 '22 13:08 jcoupey

This issue seems to be stale. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Jul 08 '24 20:07 github-actions[bot]