neo4j/neo4j — pull request #2230 by jexp (2014-04-03 13:30:27+00:00)
Title: Improved TopPipe performance by 600x

* made Expression.isDeterministic a val
* use a tuple with extracted context values for sorting, remove the need to re-lookup each expression value
* implement proper top-n select using a "runtime" approach with Arrays and binarySearch