Repository navigation
Conversation
|
Pro Tip!
If your changes do not fall into any of these categories, don't worry. You can just ignore this message in that case! 👀 |
Slimefun preview buildA Slimefun preview build is available for testing! https://preview-builds.walshy.dev/download/Slimefun/4261/a0c52cec
|
|
Is the performance regression that bad? The point behind switching was that way it doesn't break once they are no longer enums, which could be any update now with all of the breaking changes. |
|
https://docs.oracle.com/javase/7/docs/api/java/util/EnumMap.html
|
|
I'm not in favour for this unless there is a clear and obvious performance observed performance regression. Just because its theoretically slower does not mean its too slow to accept practically. Would like to see some benchmarks. |
Same here |
Description
#4258 changed all EnumMap/EnumSet usages to HashMap/HashSet. EnumMap/EnumSet is optimized for enums, and changing them for those that are still enums may cause worse performance issues.
Keep those EnumMap/EnumSet until their keys are no longer enums.
Proposed changes
Reverted #4258.
Changed the EnumMap/EnumSet for
Biomeas key.Related Issues (if applicable)
Checklist
NonnullandNullableannotations to my methods to indicate their behaviour for null values