You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new config system that separates by data type, and uses a "fast lib" for primitives (Or we implement our own, similar to DoubleMap).
Online comparisons suggest that getting types may take $\frac 1 6^{th}$ the time, which is not even considering that hash collisions could be reduced by having multiple maps. This would also take less memory, since we wouldn't have to use java's wrapper classes for primitives, which take >3x the data. Unfortunately, this isn't the biggest improvement since we already use serializers to "condense" objects. For example, block damage config gets condensed into BlockDamage, which doesn't use primitive wrappers.
The text was updated successfully, but these errors were encountered:
Create a new config system that separates by data type, and uses a "fast lib" for primitives (Or we implement our own, similar to
DoubleMap
).Online comparisons suggest that getting types may take$\frac 1 6^{th}$ the time, which is not even considering that hash collisions could be reduced by having multiple maps. This would also take less memory, since we wouldn't have to use java's wrapper classes for primitives, which take >3x the data. Unfortunately, this isn't the biggest improvement since we already use serializers to "condense" objects. For example, block damage config gets condensed into
BlockDamage
, which doesn't use primitive wrappers.The text was updated successfully, but these errors were encountered: