|
Boost : |
From: Matthias Troyer (troyer_at_[hidden])
Date: 2002-09-11 09:20:27
Hi Robert,
On Tuesday, Sep 10, 2002, at 20:29 US/Pacific, Robert Ramey wrote:
>> Robert, I appreciate all your efforts in writing this library.
>> However, while different formats are now supported, I mentioned
>> some time ago that a specialization for writing C-style arrays of
>> the basic data types is important for good performance. When
>> (de)serializing a matrix of 100'000'000 doubles I do not want to
>> call (in the worst case) a virtual function 100'000'00 times.
>
> This issue is explictly addressed by a section of the reference manual
> under
> the section of serialization of large numbers of small objects. I
> feel that
> your concerns are more than adequatly addressed here.
Maybe I'm just too stupid to see it, but from looking at the
documentation I can't see how, e.g. I would write an oarchive
that calls
xdr_double(...)
for a single double value
xdr_vector(...,&xdr_double)
for an array of doubles. As I see it, and have implemented it in my
serialization library that I would love to replace by a boost one,
we need additional virtual functions for (de)serializing arrays of
the basic data types.
Please tell me if I am wrong and how to manage this using your library.
Best regards,
Matthias
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk