Evaluator Question

16 views
Skip to first unread message

José Cornado

unread,
Jul 2, 2014, 10:54:33 AM7/2/14
to ne...@googlegroups.com
Hello!

I am about to write a custom evaluator and I have a couple of questions:

When does the evaluate(Path) happen? after calling traverse(Node) or after getting the iterator?

Can the traverse descriptions be reused once generated? Are there any performance gains by reusing it other than the obvious reuse?

Thanks a lot!!

Michael Hunger

unread,
Jul 2, 2014, 3:34:16 PM7/2/14
to ne...@googlegroups.com
While getting the nodes from the iterator, lazily.

I'm not sure that it can be reused, because it contains a lot of concerns that actually hold state.

But it is cheap to create so you can just encapsulate it in a function.

Michael

--
You received this message because you are subscribed to the Google Groups "Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

José Cornado

unread,
Jul 2, 2014, 4:12:15 PM7/2/14
to ne...@googlegroups.com
Ok.

Thanks! It will leave the code as it is and will play with reuse later if it makes sense and it doesn't break.


--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/MVSp0wzobtI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
José Cornado

--

home: http://www.efekctive.com
blog:   http://blogging.efekctive.com
----------------------

Everything has been said before, but since nobody listens we have to keep going back and beginning all over again.

Andre Gide
Reply all
Reply to author
Forward
0 new messages