[DiscordArchive] <@367784837370609664> how do I tell c# not to allign my structs?
[DiscordArchive] <@367784837370609664> how do I tell c# not to allign my structs?
Archived author: Maku • Posted: 2018-05-29T12:18:14.835000+00:00
Original source
like that?
Archived author: Deleted User • Posted: 2018-05-29T12:19:08.687000+00:00
Original source
Pack 1
Archived author: Deleted User • Posted: 2018-05-29T12:20:19.488000+00:00
Original source
Otherwise it will use 4 or 8 byte padding depending on the platform
Archived author: Skarn • Posted: 2018-05-29T12:20:50.767000+00:00
Original source
Struct padding is cancer
Archived author: Deleted User • Posted: 2018-05-29T12:21:21.804000+00:00
Original source
It can insanely improve performance
Archived author: Skarn • Posted: 2018-05-29T12:21:45.879000+00:00
Original source
Well, do it explicitly than...
Archived author: Deleted User • Posted: 2018-05-29T12:21:52.454000+00:00
Original source
Once had a structure that was not properly padded to the word size and once with
Archived author: Deleted User • Posted: 2018-05-29T12:22:11.167000+00:00
Original source
Looping over some few million elements was noticeable
Archived author: Deleted User • Posted: 2018-05-29T12:22:22.781000+00:00
Original source
Like 2x slower just because it was badly aligned
Archived author: Warpten • Posted: 2018-05-29T12:24:06.291000+00:00
Original source
TBH it's usually better to let the CLR pack for you