13
0
geforkt von Mirrors/Paper
Paper/paper-api/src
Bukkit/Spigot 1378ec9381 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.

By: crast <contact@jamescrasta.com>
2013-03-20 19:13:14 -06:00
..
main Don't cache metadata store disambiguations. Fixes BUKKIT-3841 2013-03-20 19:13:14 -06:00
site Fix menus for relative pathing. 2012-12-23 20:44:02 +00:00
test/java/org/bukkit Improve speed and memory use of FixedMetadataValue. Fixes BUKKIT-1460 2013-02-16 17:34:52 -07:00