Github user okram commented on the issue:

    https://github.com/apache/tinkerpop/pull/486
  
    Why do you do a root recursion on every traversal? Why not use the "marker 
model" ? Also, `getRequirements()` is already recursive off the root traversal 
steps. I would do this:
    
    1. If root -- search for `SimplePathStep`, `CyclicPathStep`, 
`LambdaHolder`, `Path`, `Tree`, ?
    2. If one exists, mark all child traversals with hidden label.
    3. If a child - am I marked, yes? remove the mark and return. No? do the 
rewrite.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to