On Tuesday, October 30, 2012, Kirk, Benjamin (JSC-EG311) wrote:
> A simple but less elegant solution would be to pack two contiguous arrays
> - one of the string lengths in an integer vector and another of all the
> strings concatenated into a vector<char> and broadcast both. Of course you
> could hide all this cruft inside a broadcast(vector<string>)
> specialization, which does the packing and unpacking.
Or pack all the strings (with null terminators) into a single vector<char>
and broadcast that? When unpacking just go down the vector and look for
the Nulls...sending one message instead of 2.
--
John
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel