An all-in-one allocation mini-cache. This uses invasive containment to keep a hash table as well as an LRU list. It allocates a statically configurable space in which the elements are allocated in-place.
using TMiniCache to replace an unordered_map cache inside TStream. This reduced the average instruction count of a look-up from 332 to 129 for the TStream::FetchBuf() call in a sample test. It also cuts the heap allocations down to 0 as all the space for the cache is pre-allocated inside the containing object.
Adding a space-efficient empty specialization of TMiniCache
Merge pull request #184 from jmlvanre/perf-mini-cache

Perf mini cache