For$
<!-- begin site header -->
<div id=

Author Topic: Struct Member Alignments  (Read 6939 times)

MechWarrior001

  • Newbie
  • *
  • Posts: 31
    • View Profile
Struct Member Alignments
« on: December 06, 2010, 06:49:28 am »
Can Mineserver benefit from setting this to anything but default?

ReDucTor

  • Developer
  • Newbie
  • ****
  • Posts: 10
    • View Profile
Re: Struct Member Alignments
« Reply #1 on: December 06, 2010, 08:42:01 am »
A compiler will often when compiling with speed over size provide padding, the places where this will occur which have more then one instance are probably minimal, The only time when struct member alignments (packing) might be useful is if we where reading in a packet straight as a struct. The benefits are nothing which you will ever notice.