neo4j/neo4j — pull request #307 by tinwelint (2012-11-19 09:27:24+00:00)
Title: A couple of optimizations regarding read performance:

* Cache refers to relationship types as ints instead of Strings.
* Binary search on sorted arrays for finding properties and
relationship types in the cache.
* Less objects instantiated during getting and iterating relationships.
* Reduced number of map lookups significantly for a getProperty call,
especially outside transaction or in transactions without any changes.
(previously 8 lookups whereof 2 synchronized, now down to as low as 2)
* Uses ThreadLocal as mapper from thread to transaction
* Refactored LockReleaser into TransactionState, associated with each
transaction instead