Is serialization needed, if portability isn't important?

This is a discussion on Is serialization needed, if portability isn't important? within the C++ Programming forums, part of the General Programming Boards category; Now is just as good a time as any to mention that I always reach for "sqlite" by default when ...

Now is just as good a time as any to mention that I always reach for "sqlite" by default when writing code for others and I've never had a wiggle of a performance issue due to that aspect of communication.

If the different processes are considered to be all logically part of the same program (i.e. the fact that there are multiple processes is an "implementation detail"), and the modules are always built together and deployed together, then I would share structures directly, at will. This is especially the case if the processes are direct fork()'s of each other -- share away!

If the processes are more like clients/servers, peers, SOA entry points, or otherwise, then I would transport data with extreme paranoia (as if they could all potentially be implemented with alien technology).

EDIT: Obviously there are serious issues if the shared data contains pointers which are actually dereferenced.

If the different processes are considered to be all logically part of the same program (i.e. the fact that there are multiple processes is an "implementation detail"), and the modules are always built together and deployed together, then I would share structures directly, at will. This is especially the case if the processes are direct fork()'s of each other -- share away!

If the processes are more like clients/servers, peers, SOA entry points, or otherwise, then I would transport data with extreme paranoia (as if they could all potentially be implemented with alien technology).

I don't think it'll matter in this case;
as the file I'll be mapping to virtual memory will already contain the data (which will be mutable, to an extent, by one of the processes).
So, the alien tech paranoia would have to exist, as the data could be created by an alien.
I'm trying to reduce that to the point that there would be no issues.

EDIT: Obviously there are serious issues if the shared data contains pointers which are actually dereferenced.

Manasij Mukherjee | gcc-4.9.2 @Arch Linux Slow and Steady wins the race... if and only if :1.None of the other participants are fast and steady.
2.The fast and unsteady suddenly falls asleep while running !