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
{{ message }}
Repository navigation
Allow decoupling of normal graph weights when using CH #1067
When edge weights update then CH still uses them although shortcuts are not updated. So after an update a recalculation of the shortcuts is necessary or a separate storage of the base graph edge weights is necessary. The last option requires more RAM (~4bytes*edges) but could also speed up CH routing as the Weighting.calcWeight method must not be called and instead something like the edge.getWeight could be used where a frozen value is stored.
Another (big I think) advantage of a separate storage for the base graph is that we can disconnect edges leading to or coming from lower levels, but this requires not only a separate storage for the weights, but rather for the edge connection information (nextA/nextB).
Yes, this would be interesting. For a world wide graph caching the weights would add 0.5GB (per CH profil as we have around 100M edges) to currently 6-8GB and having nextA+nextB would add 3*0.5GB, which might be worth it if the speed is >20% (which tests indicates it is)
When edge weights update then CH still uses them although shortcuts are not updated.
Do we even update edge weights anywhere?
Another (big I think) advantage of a separate storage for the base graph is that we can disconnect edges leading to or coming from lower levels, but this requires not only a separate storage for the weights, but rather for the edge connection information (nextA/nextB).
We already did this, but only to some extent as we learned that the combined storage also has some benefits.
Not anymore. We had an endpoint for this purpose once, but we removed it. So the mistake could be done only if manually implemented, but then the responsibility would not be on our side and she/he needs to update the CH preparation.
Activity
easbar commentedon Feb 4, 2019
Another (big I think) advantage of a separate storage for the base graph is that we can disconnect edges leading to or coming from lower levels, but this requires not only a separate storage for the weights, but rather for the edge connection information (nextA/nextB).
karussell commentedon Feb 15, 2019
Yes, this would be interesting. For a world wide graph caching the weights would add 0.5GB (per CH profil as we have around 100M edges) to currently 6-8GB and having nextA+nextB would add 3*0.5GB, which might be worth it if the speed is >20% (which tests indicates it is)
karussell commentedon Jul 22, 2021
Can we close here?
easbar commentedon Jul 22, 2021
Do we even update edge weights anywhere?
We already did this, but only to some extent as we learned that the combined storage also has some benefits.
As far as I am concerned we can close here yes.
boldtrn commentedon Jul 22, 2021
Would be a really cool feature for stuff like live traffic 👍 But I think we are dreaming about this for some years now :)
karussell commentedon Jul 22, 2021
Not anymore. We had an endpoint for this purpose once, but we removed it. So the mistake could be done only if manually implemented, but then the responsibility would not be on our side and she/he needs to update the CH preparation.