forked from organicmaps/organicmaps-tmp
Merge pull request #9903 from bykoianko/master-comment-about-two-geom-caches
[routing] Adding comment about two geom caches for bidirectional A*.
This commit is contained in:
commit
3f04f23955
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ public:
|
|||
/// On the other hand methods GetRoad() and GetPoint() return geometry information by reference.
|
||||
/// The reference may be invalid after the next call of GetRoad() or GetPoint() because the cache
|
||||
/// item which is referred by returned reference may be evicted. It's done for performance reasons.
|
||||
/// \note The cache |m_featureIdToRoad| is used for road geometry for single-directional
|
||||
/// and bidirectional A*. According to tests it's faster to use one cache for both directions
|
||||
/// in bidirectional A* case than two separate caches, one for each direction (one for each A* wave).
|
||||
class Geometry final
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Reference in a new issue