[ https://issues.apache.org/jira/browse/TINKERPOP-1228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15201715#comment-15201715 ]
Marko A. Rodriguez commented on TINKERPOP-1228: ----------------------------------------------- {{Traverasals}} have {{hashCode()}} defined, where {{equals()}} is based on {{hashCode()}}. If you keep the {{Traversals}} in their {{PureTraversal}}-form in a {{Map<Integer,PureTraversal>}} the client can pass the {{hashCode()}} to see if its in the cache, if not, pass the traversal for caching and execution. If its in the cache, pull it, {{pureTraversal.get()}} to get a compiled version. > Traversal Caching for TraversalOpProcessor > ------------------------------------------ > > Key: TINKERPOP-1228 > URL: https://issues.apache.org/jira/browse/TINKERPOP-1228 > Project: TinkerPop > Issue Type: Improvement > Components: driver, server > Affects Versions: 3.2.0-incubating > Reporter: stephen mallette > > Serialized traversals are big which makes repeated requests for the same > traversal expensive. Would be better to cache these somehow for re-use to > avoid the serialization and network overhead. -- This message was sent by Atlassian JIRA (v6.3.4#6332)