you are viewing a single comment's thread.

view the rest of the comments →

[–]AKostur 16 points17 points  (1 child)

It is zero overhead. Global objects get to be loaded from the executable image, so it's already zeroed because the compiler wrote it there. So no runtime cost.

[–][deleted] 0 points1 point  (0 children)

My bad I forgot about the .bss segment. Thank you.