Subject: Re: [boost] [boost::endian] Request for comments/interest
From: Tomas Puverle (tomas.puverle_at_[hidden])
Date: 2010-06-03 09:35:11
> > Your code could be as efficient as using Tomas' swap(), but not
> > swap_in_place(), I think. Measurements are good.
> Good prediction! The type-based code is more efficient than Tomas' swap()
> but less efficient than swap_in_place.
That is surprising. swap() should have no overhead compared to the endian
object types. Then again, it's very early code, and I've done no optimization
yet. It could be something as simply as an "inline" missing.
> Both approaches are equally efficient for the same-endian case.
Do you mean endian object and swap_in_place or endian object and swap?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk