I'm writing a class to contain serialized data structures (any type, assume already serialized into byte arrays), and I am unsure as to whether or not I need to worry about memory packing, padding, page alignment, and other such optimizations. I'm considering going through with it. It's for inter-thread comms and possibly file data serialization.
#Talk me down from the ledge
3 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
Hi! Yes, in the general case, you should be concerned about memory packing. You can start by reading https://en.wikipedia.org/wiki/Endianness.