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
Adding nodes's and ways's version access in lua binding. #3373
Conversation
Are you sure the version tag is still available since we're using the osrm-backend/src/extractor/extractor.cpp Line 132 in fe5cc55
|
Hi @daniel-j-h |
The reason we added this flag is a pbf parsing speed up by 10-20%. |
We do computation from way geometries in lua to adjust speed. As computation are time consuming, we want to cache the result for next run of osrm-extract. But for caching the computation result we need to have the way version. So in our case reading metata will result in speed up. If we code parsing meta data of pbf as as option, and add it to this pull request, do you merge it ? |
Yes one way to achieve this would be to add a new command line option e.g. |
Adding a flag would work for me, but what happens when this function is called from a profile and there is no meta data? Does it crash? |
I tested this use case, if this function is called but there isn't meta data function return 0. |
Hi @daniel-j-h, I added the command line option |
@fijemax Looks good. Added this to the 5.6 milestone since we have feature freeze for 5.5. |
This needs a rebase, current conflicts in master. |
d56323e
to
818297c
Compare
This is blocked by #3452? |
Yes - theoretically it should work, as it worked with Luabind before. But we want to be sure #3452 is resolved first. |
ace3f1e
to
c6c06cd
Compare
Hi, |
Perfect, thanks - sorry it took so long. Could you format your changes to https://travis-ci.org/Project-OSRM/osrm-backend/jobs/188805267#L409-L410 |
Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
c6c06cd
to
ff1cec0
Compare
This keep the metadata reader flag disabled by default unless explicitly specified. Signed-off-by: FILLAU Jean-Maxime <jean-maxime.fillau@mapotempo.com>
ff1cec0
to
0f9ef40
Compare
it's done. |
Thank you, this just landed! |
Adding nodes's and ways's version access in lua binding for users who need this information.
Tasklist
Signed-off-by: FILLAU Jean-Maxime jean-maxime.fillau@mapotempo.com