mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-22 22:58:25 +00:00
325c3c1fa7
* lib/db, lib/protocol: Compact FileInfo and BlockInfo alignment This fixes the following two lint warnings FileInfo: struct of size 160 bytes could be of size 136 bytes BlockInfo: struct of size 48 bytes could be of size 40 bytes by reordering fields in alignment order (64 bit fields, then 32 bit fields, then 16 bit fields (if any), then small ones). The end result is a slightly less aesthetically pleasing struct field order, but since these are the objects we often juggle in bulk and keep large queues of I think it's worth it. It's a micro optimization, but a cheap one.