]> git.draconx.ca Git - dxcommon.git/commit
copysym: Merge tables into a single static allocation.
authorNick Bowler <nbowler@draconx.ca>
Wed, 21 Feb 2024 02:20:37 +0000 (21:20 -0500)
committerNick Bowler <nbowler@draconx.ca>
Fri, 23 Feb 2024 01:31:59 +0000 (20:31 -0500)
commit984752355c18f9cfac6425e6387a2d157c011846
tree426ed2060e1f33fd3bc895efd08e1b966f01d656
parentd370ab57b97f352ace48992a01dc57ad84d57dd0
copysym: Merge tables into a single static allocation.

On x86_64, gcc overaligns static arrays at least 16 bytes long onto
a 16-byte boundary, and arrays at least 32 bytes long on a 32-byte
boundary, which for these tables seems to be totally unnecessary.

Putting both arrays into one structure means that at least within
this one translation unit, we don't pointlessly waste space padding
between the two arrays to maintain unneeded alignment.
src/copysym.c