[DiscordArchive] What the heck is a "non-blittable" type in .NET?
[DiscordArchive] What the heck is a "non-blittable" type in .NET?
Archived author: Warpten • Posted: 2018-06-17T10:06:09.276000+00:00
Original source
List<struct> does not really work
Archived author: Warpten • Posted: 2018-06-17T10:06:25.412000+00:00
Original source
Because the indexer will get you a temporary copy
Archived author: Quantam • Posted: 2018-06-17T10:06:44.447000+00:00
Original source
Ahhh right
Archived author: Warpten • Posted: 2018-06-17T10:06:56.180000+00:00
Original source
Unless they fixed that with the recent ref T changes, which I'm not completely aware of, and too lazy to open ILSpy
Archived author: Quantam • Posted: 2018-06-17T10:07:01.054000+00:00
Original source
Though still more space efficient
Archived author: Warpten • Posted: 2018-06-17T10:07:21.606000+00:00
Original source
Depends on the size of the type
Archived author: Quantam • Posted: 2018-06-17T10:07:28.840000+00:00
Original source
Sure
Archived author: Warpten • Posted: 2018-06-17T10:07:56.286000+00:00
Original source
My rule of thumb is to always start off with reference types
Archived author: Warpten • Posted: 2018-06-17T10:08:03.008000+00:00
Original source
and then try to see what can become a value type
Archived author: Warpten • Posted: 2018-06-17T10:08:13.421000+00:00
Original source
and if there's any benefit to it besides reduced heap fragmentation and allocations