You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We can try a b-heap to potentially improve routing query performance. See wikipedia. It is a bit memory waste but in case of CH requests could become interesting.
There are also so called "monotone queues" (see jheaps for Java implementations), but unfortunately those implementations are a lot slower than JDK's PriorityQueue.
I'm currently playing a bit around with different implementations, e.g. no remove of the key (instead accepting some more undisturbing polls) and via a sorted map like TreeMap or ConcurrentSkipListMap and something like ((long) (entry.weight * 1000) << 32) | entry.adjNode
for a Long key.
The results are a bit disappointing (used Bavaria as test region): ConcurrentSkipListMap is roughly 50% slower, TreeMap is only 20% slower, no remove(key) call (accepting bigger prio queue) is also ~30% slower, CH routing is only 5-10% slower though.
Activity
karussell commentedon Nov 18, 2016
I'm currently playing a bit around with different implementations, e.g. no remove of the key (instead accepting some more undisturbing polls) and via a sorted map like TreeMap or ConcurrentSkipListMap and something like
((long) (entry.weight * 1000) << 32) | entry.adjNodefor a
Longkey.The results are a bit disappointing (used Bavaria as test region): ConcurrentSkipListMap is roughly 50% slower, TreeMap is only 20% slower, no remove(key) call (accepting bigger prio queue) is also ~30% slower, CH routing is only 5-10% slower though.
important fix for measurement to rebuild the core, #489