meteor-client
meteor-client copied to clipboard
rewrite registry/registry list settings
Type of change
- [x] Performance improvement
Description
We have many registry-based values like Block/Item... But now they are of List. This causes issue if we:
- Use
.containson them. TypicalList.containsis ofO(n)andSet.containsis ofO(1)~O(log n). - Add same values,
ArrayListdoesn't prevent us to do that.
This PR is in order to:
- Migrate same code of these settings
- Replace List with Set of them
How Has This Been Tested?
Videos or screenshots of the changes if applicable.
Checklist:
- [x] My code follows the style guidelines of this project.
- [ ] I have added comments to my code in more complex areas.
- [ ] I have tested the code in both development and production environments.
I think I messed up the commit history of this branch...
you tried to merge this into the mc-update branch
I'll try to clean it later
Okay now cleaned