...one of the most highly
regarded and expertly designed C++ library projects in the
world. — Herb Sutter and Andrei
boost::mpi::python::register_serialized — Register the type T for direct serialization within Boost.MPI.
// In header: <boost/mpi/python.hpp> template<typename T> void register_serialized(const T & value = T(), PyTypeObject * type = 0);
register_serialized function registers a C++ type for direct serialization within Boost.MPI. Direct serialization elides the use of the Python
pickle package when serializing Python objects that represent C++ values. Direct serialization can be beneficial both to improve serialization performance (Python pickling can be very inefficient) and to permit serialization for Python-wrapped C++ objects that do not support pickling.