Neo4j Ruby traverser dope

10 views
Skip to first unread message

Peter Neubauer

unread,
Nov 25, 2009, 2:26:03 AM11/25/09
to neo...@googlegroups.com, Neo user discussions
Hi folks,
I did a little test on speeding up traversal in the JRuby bindings by
using the Java API from JRuby, wrote a blog on it
http://blogs.neotechnology.com/peter/2009/11/neo4jrb-dope-that-ruby-traverser.html
and pushed the code to
http://github.com/peterneubauer/neo4j/tree/master/examples/filetree

Feel free to comment, clone and improve (e.g. Ruby compiled mode etc etc)!

/peter neubauer

COO and Sales, Neo Technology

GTalk: neubauer.peter
Skype peter.neubauer
Phone +46 704 106975
LinkedIn http://www.linkedin.com/in/neubauer
Twitter http://twitter.com/peterneubauer

http://www.neo4j.org - Relationships count.
http://www.linkedprocess.org - Distributed computing on LinkedData scale

Andreas Ronge

unread,
Nov 25, 2009, 2:58:30 AM11/25/09
to neo...@googlegroups.com, Neo user discussions
Hi

Thanks.
One performance problem with neo4j.rb is that it always wraps java
Node objects with ruby instances.
Each Node Ruby instance is created by reading the 'classname' property
(so that the correct Ruby class will be used).
When doing traversals it will impact the performance.
I'm thinking of improving this by adding methods (from the NodeMixin)
on the org.neo4j.api.Node class so that neo4j.rb can use
the java version of the Node instance without wrapping it

Cheers
/Andreas
> --
>
> You received this message because you are subscribed to the Google Groups "neo4jrb" group.
> To post to this group, send email to neo...@googlegroups.com.
> To unsubscribe from this group, send email to neo4jrb+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/neo4jrb?hl=en.
>
>
>
Reply all
Reply to author
Forward
0 new messages