Application of traversal strategies taking >6x longer than traversal execution

Has any providers dealt with traversal strategies taking a really long time in large nested traversals (nested with coalesce branches)? Just the default tinkerpop strategies are taking >120 ms to apply while the query executes in ~20 ms.

I looked through and found it is the recurse applyTraversal function which I am thinking of rewriting with some other code but I don't know if it will be much faster. I figured other providers must have dealt with this as well.
Solution
there are two fixes landing for this issue in 3.5.6/3.6.3 - these are the two PRs that are relevant: https://github.com/apache/tinkerpop/pull/2009 and https://github.com/apache/tinkerpop/pull/2026
GitHub
https://issues.apache.org/jira/browse/TINKERPOP-2919
Shortcut some of the recursion in the strategy with a cache that basically captures TraversalParent information formerly calculated and recalcul...
Was this page helpful?