slowness
Joerg Arndt
arndt at jjj.de
Tue Jan 22 05:07:38 CET 2008
For that very application I suggest you use a
library like doubledouble or quaddouble, i.e.
one that allows (only) computations with a fixed
precision with mantissa at most, say, 256 bits.
You could trigger use of gmp only starting with a
certain magnification (a huge one indeed).
I doubt you'd ever actually need this.
* Jonathan Crook <je.suis.bon at googlemail.com> [Jan 19. 2008 20:00]:
> Hi, I have been working on a mandelbrot fractal generator, and have
> decided to use GMP, to maintain precision through extensive zooming.
> However, whereas a fractal would generate in <1s using long doubles,
> with mpf_class it takes around 180s. I understand that in my code, this
> causes an incredible amount and frequency of function calls, and thus
> also GMP arithmetic, but am I to expect this kind of performance
> overhead, or am I merely doing something wrong?
>
> Thanks, Jonny.
>
>
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss at swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss
More information about the gmp-discuss
mailing list