HashMap<UUID/String, Object>
Which is better? I know UUIDs dont use that much memory but what is generally better to use?
UUID takes up less space than the String does. Storing UUID itself via HashMap<UUID, MyObject>
will conserve the space compared to HashMap<String, MyObject>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With