Search This Blog

Monday, September 17, 2018

Why padding?

Padding makes all objects take space that is a mulitple of 8 bytes. This can waste some memory but it speeds up memory access and garbage collection.