square/dagger — pull request #336 by cgruber (2013-11-09 01:59:31+00:00)
Title: Use a ReadWriteLock rather than a single, global lock to memoize in dagger.

Use a ReadWriteLock rather than a single, global lock to memoize in dagger.

In server-side apps we have clocked Dagger's LRU cache locks as the third-most contended lock, and this permits much more parallelization. While less crucial on Android, this is a performance killer on a high-contention server.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=54797822