-
Notifications
You must be signed in to change notification settings - Fork 30
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
Openlr Performance Issue #33
Comments
I have a few questions about the issue:
The map implementation in the |
Thanks for posting the info! Could you try reducing the number of threads from 200 down to 10? I think the number of threads is too high and they are likely competing for resources. This might increase the throughput. You seem to be getting throughput of about (40m * 60s * 1000ms / 43000 records) = 55 milliseconds per record. The OpenLR sqlite database was not really designed for high-performance but rather as a simple example implementation of a map to get started with OpenLR. I think you are just hitting on the limits of sqlite. You could try, for example, implementing |
Hello Stephen, Thanks for you valuable feed back. i could not found any API's support for IN MEMORY with openlr. Could you please help us to provide any snippet or steps to implement IN MEMORY. Thanks. |
You are right. We don't have a in-memory implementation of the map database. This is something we would like to do in the future. To achieve this:
|
Hi stephencurran, Thanks again, Sorry for the late reply, i understand that openlr do not have in-memory implementation Can you suggest instead Java, is there any other technologies to process the data faster with Openlr. Regards |
Hello @sudhaharv77, Best,
|
Hi Antonio
Yes I am interested, could please share more details
Regards
Sudhahar
…On Thu, Mar 25, 2021, 5:14 PM antonio di noto ***@***.***> wrote:
Hello @sudhaharv77 <https://github.com/sudhaharv77>,
we have a very fast OpenLR decoder implementation (6k-50k identifiers per
second on a 4 core machine with 16GB of RAM). If you are still interested,
you can contact me.
Best,
antonio
Hi stephencurran,
Thanks again,
Sorry for the late reply, i understand that openlr do not have in-memory
implementation
is it any road map to implement in-memory in future?
Can you suggest instead Java, is there any other technologies to process
the data faster with Openlr.
Regards
Sudhahar
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZBLFHBYZELLMV3WFAVLIDTFL5HDANCNFSM4JVW3L7Q>
.
|
Hi Sudhahar,
We achieve these performances because we've developed our own graph
database specifically for this task and connected it to the OpenLR
implementation on github.
We're using it with TomTom's Multinet of a large portion of the world
(~700M edges) and we decode 6k to 50k of OpenLR binary identifiers per
second (it depends on the density of the graph in the area).
If you are interested, we could offer a simple REST APIs for decoding
OpenLR in batches.
Can you share some information about your project?
best,
antonio
On Thu, Mar 25, 2021 at 10:58 AM sudhaharv77 ***@***.***>
wrote:
… Hi Antonio
Yes I am interested, could please share more details
Regards
Sudhahar
On Thu, Mar 25, 2021, 5:14 PM antonio di noto ***@***.***>
wrote:
> Hello @sudhaharv77 <https://github.com/sudhaharv77>,
> we have a very fast OpenLR decoder implementation (6k-50k identifiers per
> second on a 4 core machine with 16GB of RAM). If you are still
interested,
> you can contact me.
>
> Best,
> antonio
>
> Hi stephencurran,
>
> Thanks again,
>
> Sorry for the late reply, i understand that openlr do not have in-memory
> implementation
> is it any road map to implement in-memory in future?
>
> Can you suggest instead Java, is there any other technologies to process
> the data faster with Openlr.
>
> Regards
> Sudhahar
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <
#33 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AHZBLFHBYZELLMV3WFAVLIDTFL5HDANCNFSM4JVW3L7Q
>
> .
>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVO23RT3GVXMUXKFJDLXQDTFMCKZANCNFSM4JVW3L7Q>
.
--
Antonio Di Noto, CTO
Duel S.p.A.
via del Poggio Laurentino, 66 - 00144 Roma
Tel. +39 06.5195951
Linkedin http://it.linkedin.com/in/antoniodinoto/
http://www.dueltv.com
Please consider the environment before printing this e-mail
|
Hi Antonio,
Let me explain our project,
We are doing Advanced Traffic Management System(ATMS) for GULF country, we
already got the API to get live traffic data from TOMTOM (
https://traffic.tomtom.com/tsq/hdf-detailed/ARE-HDF_DETAILED-OPENLR/xxxxxxxxx
)
We are calling every 2 mins to get updated traffic speed data from the
above URL to update our GIS map
TOMTOM providing 55k records as encrypted format then we are decoding each
time using OPENLR (
https://github.com/tomtom-international/openlr/tree/master/decoder)
We are unable to complete the whole process with in 2 min,
I need help from you to compete the whole process with in 2 min, Or any
other method to do
i have used below snippet to process the tomtom inputstream object
[image: image.png]
Regards
Sudhahar
On Thu, Mar 25, 2021 at 6:36 PM antonio di noto ***@***.***>
wrote:
… Hi Sudhahar,
We achieve these performances because we've developed our own graph
database specifically for this task and connected it to the OpenLR
implementation on github.
We're using it with TomTom's Multinet of a large portion of the world
(~700M edges) and we decode 6k to 50k of OpenLR binary identifiers per
second (it depends on the density of the graph in the area).
If you are interested, we could offer a simple REST APIs for decoding
OpenLR in batches.
Can you share some information about your project?
best,
antonio
On Thu, Mar 25, 2021 at 10:58 AM sudhaharv77 ***@***.***>
wrote:
> Hi Antonio
>
> Yes I am interested, could please share more details
>
> Regards
> Sudhahar
>
>
>
> On Thu, Mar 25, 2021, 5:14 PM antonio di noto ***@***.***>
> wrote:
>
> > Hello @sudhaharv77 <https://github.com/sudhaharv77>,
> > we have a very fast OpenLR decoder implementation (6k-50k identifiers
per
> > second on a 4 core machine with 16GB of RAM). If you are still
> interested,
> > you can contact me.
> >
> > Best,
> > antonio
> >
> > Hi stephencurran,
> >
> > Thanks again,
> >
> > Sorry for the late reply, i understand that openlr do not have
in-memory
> > implementation
> > is it any road map to implement in-memory in future?
> >
> > Can you suggest instead Java, is there any other technologies to
process
> > the data faster with Openlr.
> >
> > Regards
> > Sudhahar
> >
> > —
> > You are receiving this because you were mentioned.
> > Reply to this email directly, view it on GitHub
> > <
>
#33 (comment)
> >,
> > or unsubscribe
> > <
>
https://github.com/notifications/unsubscribe-auth/AHZBLFHBYZELLMV3WFAVLIDTFL5HDANCNFSM4JVW3L7Q
> >
> > .
> >
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <
#33 (comment)
>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/AAVO23RT3GVXMUXKFJDLXQDTFMCKZANCNFSM4JVW3L7Q
>
> .
>
--
Antonio Di Noto, CTO
Duel S.p.A.
via del Poggio Laurentino, 66 - 00144 Roma
Tel. +39 06.5195951
Linkedin http://it.linkedin.com/in/antoniodinoto/
http://www.dueltv.com
Please consider the environment before printing this e-mail
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHZBLFGWQ6U4CZUNFTMJVBTTFMG2VANCNFSM4JVW3L7Q>
.
|
Hi Antonio,
Additional information for the decode below,
[image: image.png]
[image: image.png]
Regards
Sudhahar
On Tue, Mar 30, 2021 at 2:55 PM Sudhahar Vaithilingam <
***@***.***> wrote:
… Hi Antonio,
Let me explain our project,
We are doing Advanced Traffic Management System(ATMS) for GULF country, we
already got the API to get live traffic data from TOMTOM (
https://traffic.tomtom.com/tsq/hdf-detailed/ARE-HDF_DETAILED-OPENLR/xxxxxxxxx
)
We are calling every 2 mins to get updated traffic speed data from the
above URL to update our GIS map
TOMTOM providing 55k records as encrypted format then we are decoding each
time using OPENLR (
https://github.com/tomtom-international/openlr/tree/master/decoder)
We are unable to complete the whole process with in 2 min,
I need help from you to compete the whole process with in 2 min, Or any
other method to do
i have used below snippet to process the tomtom inputstream object
[image: image.png]
Regards
Sudhahar
On Thu, Mar 25, 2021 at 6:36 PM antonio di noto ***@***.***>
wrote:
> Hi Sudhahar,
>
> We achieve these performances because we've developed our own graph
> database specifically for this task and connected it to the OpenLR
> implementation on github.
> We're using it with TomTom's Multinet of a large portion of the world
> (~700M edges) and we decode 6k to 50k of OpenLR binary identifiers per
> second (it depends on the density of the graph in the area).
>
> If you are interested, we could offer a simple REST APIs for decoding
> OpenLR in batches.
>
> Can you share some information about your project?
>
> best,
>
> antonio
>
> On Thu, Mar 25, 2021 at 10:58 AM sudhaharv77 ***@***.***>
> wrote:
>
> > Hi Antonio
> >
> > Yes I am interested, could please share more details
> >
> > Regards
> > Sudhahar
> >
> >
> >
> > On Thu, Mar 25, 2021, 5:14 PM antonio di noto ***@***.***>
> > wrote:
> >
> > > Hello @sudhaharv77 <https://github.com/sudhaharv77>,
> > > we have a very fast OpenLR decoder implementation (6k-50k identifiers
> per
> > > second on a 4 core machine with 16GB of RAM). If you are still
> > interested,
> > > you can contact me.
> > >
> > > Best,
> > > antonio
> > >
> > > Hi stephencurran,
> > >
> > > Thanks again,
> > >
> > > Sorry for the late reply, i understand that openlr do not have
> in-memory
> > > implementation
> > > is it any road map to implement in-memory in future?
> > >
> > > Can you suggest instead Java, is there any other technologies to
> process
> > > the data faster with Openlr.
> > >
> > > Regards
> > > Sudhahar
> > >
> > > —
> > > You are receiving this because you were mentioned.
> > > Reply to this email directly, view it on GitHub
> > > <
> >
> #33 (comment)
> > >,
> > > or unsubscribe
> > > <
> >
> https://github.com/notifications/unsubscribe-auth/AHZBLFHBYZELLMV3WFAVLIDTFL5HDANCNFSM4JVW3L7Q
> > >
> > > .
> > >
> >
> > —
> > You are receiving this because you commented.
> > Reply to this email directly, view it on GitHub
> > <
> #33 (comment)
> >,
> > or unsubscribe
> > <
> https://github.com/notifications/unsubscribe-auth/AAVO23RT3GVXMUXKFJDLXQDTFMCKZANCNFSM4JVW3L7Q
> >
> > .
> >
>
>
> --
> Antonio Di Noto, CTO
> Duel S.p.A.
> via del Poggio Laurentino, 66 - 00144 Roma
> Tel. +39 06.5195951
> Linkedin http://it.linkedin.com/in/antoniodinoto/
> http://www.dueltv.com
> Please consider the environment before printing this e-mail
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <#33 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHZBLFGWQ6U4CZUNFTMJVBTTFMG2VANCNFSM4JVW3L7Q>
> .
>
|
Hi
Could you please help to update on my Queries
Regards
Sudhahar
On Tue, Mar 30, 2021, 4:03 PM Sudhahar Vaithilingam <
***@***.***> wrote:
… Hi Antonio,
Additional information for the decode below,
[image: image.png]
[image: image.png]
Regards
Sudhahar
On Tue, Mar 30, 2021 at 2:55 PM Sudhahar Vaithilingam <
***@***.***> wrote:
> Hi Antonio,
> Let me explain our project,
> We are doing Advanced Traffic Management System(ATMS) for GULF country,
> we already got the API to get live traffic data from TOMTOM (
> https://traffic.tomtom.com/tsq/hdf-detailed/ARE-HDF_DETAILED-OPENLR/xxxxxxxxx
> )
>
> We are calling every 2 mins to get updated traffic speed data from the
> above URL to update our GIS map
>
> TOMTOM providing 55k records as encrypted format then we are
> decoding each time using OPENLR (
> https://github.com/tomtom-international/openlr/tree/master/decoder)
> We are unable to complete the whole process with in 2 min,
>
> I need help from you to compete the whole process with in 2 min, Or any
> other method to do
>
> i have used below snippet to process the tomtom inputstream object
>
> [image: image.png]
>
> Regards
> Sudhahar
>
>
>
>
>
>
>
>
> On Thu, Mar 25, 2021 at 6:36 PM antonio di noto ***@***.***>
> wrote:
>
>> Hi Sudhahar,
>>
>> We achieve these performances because we've developed our own graph
>> database specifically for this task and connected it to the OpenLR
>> implementation on github.
>> We're using it with TomTom's Multinet of a large portion of the world
>> (~700M edges) and we decode 6k to 50k of OpenLR binary identifiers per
>> second (it depends on the density of the graph in the area).
>>
>> If you are interested, we could offer a simple REST APIs for decoding
>> OpenLR in batches.
>>
>> Can you share some information about your project?
>>
>> best,
>>
>> antonio
>>
>> On Thu, Mar 25, 2021 at 10:58 AM sudhaharv77 ***@***.***>
>> wrote:
>>
>> > Hi Antonio
>> >
>> > Yes I am interested, could please share more details
>> >
>> > Regards
>> > Sudhahar
>> >
>> >
>> >
>> > On Thu, Mar 25, 2021, 5:14 PM antonio di noto ***@***.***>
>> > wrote:
>> >
>> > > Hello @sudhaharv77 <https://github.com/sudhaharv77>,
>> > > we have a very fast OpenLR decoder implementation (6k-50k
>> identifiers per
>> > > second on a 4 core machine with 16GB of RAM). If you are still
>> > interested,
>> > > you can contact me.
>> > >
>> > > Best,
>> > > antonio
>> > >
>> > > Hi stephencurran,
>> > >
>> > > Thanks again,
>> > >
>> > > Sorry for the late reply, i understand that openlr do not have
>> in-memory
>> > > implementation
>> > > is it any road map to implement in-memory in future?
>> > >
>> > > Can you suggest instead Java, is there any other technologies to
>> process
>> > > the data faster with Openlr.
>> > >
>> > > Regards
>> > > Sudhahar
>> > >
>> > > —
>> > > You are receiving this because you were mentioned.
>> > > Reply to this email directly, view it on GitHub
>> > > <
>> >
>> #33 (comment)
>> > >,
>> > > or unsubscribe
>> > > <
>> >
>> https://github.com/notifications/unsubscribe-auth/AHZBLFHBYZELLMV3WFAVLIDTFL5HDANCNFSM4JVW3L7Q
>> > >
>> > > .
>> > >
>> >
>> > —
>> > You are receiving this because you commented.
>> > Reply to this email directly, view it on GitHub
>> > <
>> #33 (comment)
>> >,
>> > or unsubscribe
>> > <
>> https://github.com/notifications/unsubscribe-auth/AAVO23RT3GVXMUXKFJDLXQDTFMCKZANCNFSM4JVW3L7Q
>> >
>> > .
>> >
>>
>>
>> --
>> Antonio Di Noto, CTO
>> Duel S.p.A.
>> via del Poggio Laurentino, 66 - 00144 Roma
>> Tel. +39 06.5195951
>> Linkedin http://it.linkedin.com/in/antoniodinoto/
>> http://www.dueltv.com
>> Please consider the environment before printing this e-mail
>>
>> —
>> You are receiving this because you were mentioned.
>> Reply to this email directly, view it on GitHub
>> <#33 (comment)>,
>> or unsubscribe
>> <https://github.com/notifications/unsubscribe-auth/AHZBLFGWQ6U4CZUNFTMJVBTTFMG2VANCNFSM4JVW3L7Q>
>> .
>>
>
|
Hello,
we better continue this discussion in private, my e-mail is: a.dinoto at
dueltv dot com, can you send me yours?
On Mon, Apr 26, 2021 at 1:21 PM sudhaharv77 ***@***.***>
wrote:
… Hi
Could you please help to update on my Queries
Regards
Sudhahar
On Tue, Mar 30, 2021, 4:03 PM Sudhahar Vaithilingam <
***@***.***> wrote:
> Hi Antonio,
>
> Additional information for the decode below,
>
> [image: image.png]
>
>
> [image: image.png]
>
> Regards
> Sudhahar
>
> On Tue, Mar 30, 2021 at 2:55 PM Sudhahar Vaithilingam <
> ***@***.***> wrote:
>
>> Hi Antonio,
>> Let me explain our project,
>> We are doing Advanced Traffic Management System(ATMS) for GULF country,
>> we already got the API to get live traffic data from TOMTOM (
>>
https://traffic.tomtom.com/tsq/hdf-detailed/ARE-HDF_DETAILED-OPENLR/xxxxxxxxx
>> )
>>
>> We are calling every 2 mins to get updated traffic speed data from the
>> above URL to update our GIS map
>>
>> TOMTOM providing 55k records as encrypted format then we are
>> decoding each time using OPENLR (
>> https://github.com/tomtom-international/openlr/tree/master/decoder)
>> We are unable to complete the whole process with in 2 min,
>>
>> I need help from you to compete the whole process with in 2 min, Or any
>> other method to do
>>
>> i have used below snippet to process the tomtom inputstream object
>>
>> [image: image.png]
>>
>> Regards
>> Sudhahar
>>
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Mar 25, 2021 at 6:36 PM antonio di noto ***@***.***>
>> wrote:
>>
>>> Hi Sudhahar,
>>>
>>> We achieve these performances because we've developed our own graph
>>> database specifically for this task and connected it to the OpenLR
>>> implementation on github.
>>> We're using it with TomTom's Multinet of a large portion of the world
>>> (~700M edges) and we decode 6k to 50k of OpenLR binary identifiers per
>>> second (it depends on the density of the graph in the area).
>>>
>>> If you are interested, we could offer a simple REST APIs for decoding
>>> OpenLR in batches.
>>>
>>> Can you share some information about your project?
>>>
>>> best,
>>>
>>> antonio
>>>
>>> On Thu, Mar 25, 2021 at 10:58 AM sudhaharv77 ***@***.***>
>>> wrote:
>>>
>>> > Hi Antonio
>>> >
>>> > Yes I am interested, could please share more details
>>> >
>>> > Regards
>>> > Sudhahar
>>> >
>>> >
>>> >
>>> > On Thu, Mar 25, 2021, 5:14 PM antonio di noto ***@***.***>
>>> > wrote:
>>> >
>>> > > Hello @sudhaharv77 <https://github.com/sudhaharv77>,
>>> > > we have a very fast OpenLR decoder implementation (6k-50k
>>> identifiers per
>>> > > second on a 4 core machine with 16GB of RAM). If you are still
>>> > interested,
>>> > > you can contact me.
>>> > >
>>> > > Best,
>>> > > antonio
>>> > >
>>> > > Hi stephencurran,
>>> > >
>>> > > Thanks again,
>>> > >
>>> > > Sorry for the late reply, i understand that openlr do not have
>>> in-memory
>>> > > implementation
>>> > > is it any road map to implement in-memory in future?
>>> > >
>>> > > Can you suggest instead Java, is there any other technologies to
>>> process
>>> > > the data faster with Openlr.
>>> > >
>>> > > Regards
>>> > > Sudhahar
>>> > >
>>> > > —
>>> > > You are receiving this because you were mentioned.
>>> > > Reply to this email directly, view it on GitHub
>>> > > <
>>> >
>>>
#33 (comment)
>>> > >,
>>> > > or unsubscribe
>>> > > <
>>> >
>>>
https://github.com/notifications/unsubscribe-auth/AHZBLFHBYZELLMV3WFAVLIDTFL5HDANCNFSM4JVW3L7Q
>>> > >
>>> > > .
>>> > >
>>> >
>>> > —
>>> > You are receiving this because you commented.
>>> > Reply to this email directly, view it on GitHub
>>> > <
>>>
#33 (comment)
>>> >,
>>> > or unsubscribe
>>> > <
>>>
https://github.com/notifications/unsubscribe-auth/AAVO23RT3GVXMUXKFJDLXQDTFMCKZANCNFSM4JVW3L7Q
>>> >
>>> > .
>>> >
>>>
>>>
>>> --
>>> Antonio Di Noto, CTO
>>> Duel S.p.A.
>>> via del Poggio Laurentino, 66 - 00144 Roma
>>> Tel. +39 06.5195951
>>> Linkedin http://it.linkedin.com/in/antoniodinoto/
>>> http://www.dueltv.com
>>> Please consider the environment before printing this e-mail
>>>
>>> —
>>> You are receiving this because you were mentioned.
>>> Reply to this email directly, view it on GitHub
>>> <
#33 (comment)
>,
>>> or unsubscribe
>>> <
https://github.com/notifications/unsubscribe-auth/AHZBLFGWQ6U4CZUNFTMJVBTTFMG2VANCNFSM4JVW3L7Q
>
>>> .
>>>
>>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#33 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAVO23RDO5BTUXCYQH7VUJLTKVECDANCNFSM4JVW3L7Q>
.
--
Antonio Di Noto, CTO
Duel S.p.A.
via del Poggio Laurentino, 66 - 00144 Roma
Tel. +39 06.5195951
Linkedin http://it.linkedin.com/in/antoniodinoto/
http://www.dueltv.com
Please consider the environment before printing this e-mail
|
Hi,
We are developing the traffic project, we are getting the traffic data from
tomtom(https://traffic.tomtom.com/tsq/hdf/ARE-HDF-OPENLR/149d7921-d010-43cd-8e0d-83e5df700500/content.proto) as of now URL is not open for us. we are using the sample proto data.
Here the issue is, when we try to decode the data using openlr(openlr.decoder.OpenLRDecoder;) its consuming more time to return response( example 1 sec for 1 record).
We have almost 43000 records needs to process approx. its takes almost 40 mins which run by 200 threads.
Could you please help to sort out issue.
Java Sample:
ByteArray openLRByteArray = new ByteArray((byte[]) trafficFlow.getLocation().getOpenlr().toByteArray());
LocationReference locRef = new LocationReferenceBinaryImpl("", openLRByteArray);
Location decodedLoc = new OpenLRDecoder().decode(decParam, locRef);
Thanks,
The text was updated successfully, but these errors were encountered: