Commit Graph
4 Commits
Author SHA1 Message Date
Antony Riley 4b5902de92 Sanitise RegionFileCache and make cache size configurable. 2016-03-29 08:27:14 +03:00
Antony Riley 337de6e8af Reduce IO ops opening a new region file. 2016-03-29 06:57:26 +03:00
Antony Riley 0712a5c5ff Fix map decorations to store UUIDs internally. 2015-06-05 09:43:14 +03:00
Antony Riley db2502d732 Sanitise RegionFileCache and make configurable
RegionFileCache prior to this patch would close every single open region
file upon reaching a size of 256.
This patch modifies that behaviour so it closes the the least recently
used RegionFile.
The implementation uses a LinkedHashMap as an LRU cache (modified from HashMap).
The maximum size of the RegionFileCache is also made configurable.
2016-03-29 08:22:55 +03:00