forcedotcom / phoenix

BSD 3-Clause "New" or "Revised" License
558 stars 227 forks source link

LRU cache replacement & dynamic resizing #701

Closed kutschm closed 10 years ago

kutschm commented 10 years ago

This pull requests replaces the guava LRU cache with a simple LinkedHashMap implementation. The cache now resizes by a factor of 1.5 in case the current size threshold is exceeded. It starts spilling once an InsufficientMemory exception is thrown.

Added a couple more optimizations: