Additional memory handler features.
Vincent Lefevre
vincent at vinc17.net
Mon Jan 5 02:21:26 UTC 2015
On 2015-01-04 23:17:16 +0000, David Harvey wrote:
> On 5 Jan 2015, at 10:08 am, Niels Möller <nisse at lysator.liu.se> wrote:
> > Of course there are also some drawbacks. It makes life more complicated
> > for applications, and the implementation of functions like mpn_mul_itch,
> > which interact with pretty complex algorithm choice machinery, is going
> > to be a bit complex too.
>
> Another downside is the additional overhead in the case of very
> small operands.
It depends on how this is implemented. For very small arguments, the
memory could be taken from the stack and the pointer to the scratch
area could be ignored. Ideally the whole code could be inlined in
such a case, reducing even more the overhead.
--
Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
More information about the gmp-devel
mailing list