efficios / barectf

Generator of ANSI C tracers which output CTF data streams
https://barectf.org
MIT License
65 stars 17 forks source link

Make event get size code as small as possible #7

Closed eepp closed 8 years ago

eepp commented 8 years ago

Remove unneeded _ALIGN()s when we know that the field is already aligned at this point.

Remove unneeded systematic additions when we can add the size statically and write a single addition of the partial sum when needed (before writing strings, and when the alignment becomes statically unknown).