You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Fuad Efendi <fu...@efendi.ca> on 2008/07/28 19:06:59 UTC
Unsynchronized FIFOCache - 9x times performance boost on 8-CPU
system
Please see discussion at http://issues.apache.org/jira/browse/SOLR-665
Very simple:
map = new LinkedHashMap(initialSize, 0.75f, true) - LRU Cache
(and we need synchronized get())
map = new LinkedHashMap(initialSize, 0.75f, false) - FIFO
(and we do not need synchronized get())
--
Thanks,
Fuad Efendi
http://www.linkedin.com/in/liferay