C++ versus C Programming Style

Flexibility versus Performance?

Serializer

SOURCE CODE

Benchmartk for a serialization (100000 objects of 16 bytes)
C++ Style
0.20 s
C Style
0.07 s


Compiled with: gcc (Debian 4.3.2-1.1) 4.3.2 
Flags: -03