This is an analysis of the existing Widget PinCache performance trying different storage objects. The baseline is the implementation that uses LruRedux::TTL::Cache
(which is not the threadsafe version).
I tried replacing this with a native Ruby Hash
, and in the case of the negative cache, I also tried instead replacing it with a native Set
object.
I also tried the same using a binary tree implemented within the Ruby interpreter.
Profiling was done with JRuby 1.7.22 in Ruby 2.0 mode. The process was restarted before each run.