For small vectors, I would believe that. For large vectors, I would not be surprised to see the round-trip to be up to half as fast.
The fact is, however, that you want to avoid copying for large vectors and matrices. On Sun, Jun 21, 2009 at 6:54 AM, Sean Owen <[email protected]> wrote: > clone() ought to be implemented in some > way that doesn't involve serializing and deserializing in memory, just > because that is typically going to be much slower. For some classes, maybe > doesn't matter, but probably is quite important for key abstractions like > Vector and Matrix. >
