uzh / triplerush

A distributed in-memory graph store.
Apache License 2.0
31 stars 11 forks source link

Create separate [ S * O ] index class for case where there is only one predicate #56

Open pstutz opened 8 years ago

pstutz commented 8 years ago

This would save the overhead of storing a full reference for the one integer.

pstutz commented 8 years ago

Thanks a lot to @kolarm for the suggestion.

pstutz commented 8 years ago

If adding/removing a vertex should create issues, then always having the Int on the class would still be more efficient than paying for the boxing, given the huge number of instances that have only 1 predicate.