TigerAce / BomberBoom

2 stars 0 forks source link

ArrayList is not a good idea to store game object. #2

Open lit0908 opened 9 years ago

lit0908 commented 9 years ago

May be change to HashSet?

Samruilio commented 9 years ago

is it good for referencing by key, such as id etc. ?

lit0908 commented 9 years ago

hmm, I think I dont fully understand what you mean here. I choose to use HashSet is in concern of performance.

lit0908 commented 9 years ago

ohh, I think I might get what you mean. Do you mean get the object by index/key? Why do we need this?

Samruilio commented 9 years ago

Well, i am not an expert on performance, just want to know why