summaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorcrast <contact@jamescrasta.com>2013-03-20 19:13:14 -0600
committerTravis Watkins <amaranth@ubuntu.com>2013-04-04 13:43:33 -0500
commitd95dd23cac1307788ce64201ca035cd39fd6766f (patch)
treea214fe49cd2881c98c5be45636244d755cf3d1e3 /pom.xml
parent145ebaf152de5927499b3c5d3219aabdb20fe0b1 (diff)
downloadbukkit-d95dd23cac1307788ce64201ca035cd39fd6766f.tar
bukkit-d95dd23cac1307788ce64201ca035cd39fd6766f.tar.gz
bukkit-d95dd23cac1307788ce64201ca035cd39fd6766f.tar.lz
bukkit-d95dd23cac1307788ce64201ca035cd39fd6766f.tar.xz
bukkit-d95dd23cac1307788ce64201ca035cd39fd6766f.zip
Don't cache metadata store disambiguations. Fixes BUKKIT-3841
The metadata system generates unique keys for metadata entries based on the subject metadata is being applied to and the name of the metadata being applied. It was assumed this would be an expensive operation so a cache was put in place to ensure this was done as little as possible. In reality this cache only has a benefit when you have a hit rate above ~90% and is otherwise much slower. As the implementation of the cache is a hashmap of hashmaps it also uses a significant amount of memory which is not worth it even for the performance increase with a high hit rate. This commit simply removes the cache which results in speedups for most cases and large memory savings.
Diffstat (limited to 'pom.xml')
0 files changed, 0 insertions, 0 deletions