neo4j/community — pull request #915 by tinwelint (2012-10-11 11:45:39+00:00)
Title: A couple of optimizations regarding read performance:

* Cache refres 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