Ranter
Join devRant
Do all the things like
				++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
				Sign Up
			Pipeless API
 
				From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
				Learn More
			Comments
		
- 
				
				@Root slowdowns when these collections grow bigger, possibility of collisions. Hashes of identical objects between 2 JVMs are not guaranteed to be identical.
- 
				
				 Root772326y@netikras Fair. There are definitely edgecases. Root772326y@netikras Fair. There are definitely edgecases.
 
 I haven't experienced slowdowns on large hashes though. Why would this happen?
- 
				
				@Root hashmap in java does iterate over a list of entries comparing their hash:long field value to provided object's hash value. This iteration causes O(n). My array is almost O(1) :)
- 
				
				 Root772326y@netikras That's a terrible hash implementation 😅 Root772326y@netikras That's a terrible hash implementation 😅
 It's supposed to be O(1) by design!
 
 But your array implementation sounds amazing. Good work!




I always wanted to have an array where I could store an object at index 694307084175882649501.
And now I can!!!
random
performant data structures