$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [xint] Performance of fixed-size large integers
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-03-04 11:36:15
On 04/03/2011 14:28, Chad Nelson wrote:
> On Fri, 04 Mar 2011 09:03:16 +0100
> Ivan Le Lann<ivan.lelann_at_[hidden]> wrote:
>
>>> I'll be happy to accept patches.
>>>
>>
>> I ran no benchmarks but delving through magnitude_manager_t seems
>> enough to understand the problem. Do you think specializing this class
>> on Bits parameter to be stack based for non zero values could solve
>> this performance problem?
>
> <http://permalink.gmane.org/gmane.comp.lib.boost.devel/205549>
Just drop the whole copying everywhere and COW idea, it's just making
your code more complex and preventing many simple optimizations.