Crossroads-Development / Crossroads

Crossroads is a mod for Minecraft. It adds a lot of content, and has the design philosophy of "simple pieces, complex contraptions".
MIT License
29 stars 14 forks source link

Improve performance of gateway address generation #157

Closed Da-Technomancer closed 3 years ago

Da-Technomancer commented 3 years ago

For generating a new gateway address, the current algorithm works fine for the first few addresses, but gets progressively less efficient as more addresses are already taken. This could be improved.

https://github.com/Crossroads-Development/Crossroads/blob/fd3b53620895c54049289d32e924f3debb0eb534/src/main/java/com/Da_Technomancer/crossroads/API/technomancy/GatewaySavedData.java#L53-L64