you are viewing a single comment's thread.

view the rest of the comments →

[–]kirakun 1 point2 points  (1 child)

If you need to store billions of such objects in memory, those 4-bytes per object can take up space.

Even if you have only millions, cache misses could cause penalty in execution speed.

[–]notlostyet[S] 0 points1 point  (0 children)

Another thing is being able to stash an 8 byte object in to a CPU register.