Is serialization needed, if portability isn't important?
Consider I have a class template taking some arbitrary type as its argument and doing binary IO using memory mapped files.
I don't do any serialization and just dump objects to be copied to a memory location.
I can see that a LOT of time can be potentially saved, if I get a (typecasted) 'raw' pointer from the mapped location to represent the original object.
What kind of issued might I run into with this approach ?
Do the problems, if any, exist if I use only POD types ?
If I use the same compiler and runtime (different versions..a possibility ) , are padding or C++ specific stuff going to be a problem ?
[PS: Is there something like a 'soft link' so that the post appears on C++ and Linux Programming both ?]