OT: PHP BCMath slowness

Taral taralx at gmail.com
Thu Aug 4 09:50:09 PDT 2005

On 8/4/05, Kurt Raschke <kurt at raschke.net> wrote:
> I'm working on OpenID producer and consumer support for a PHP-based
> content management system, and I am finding that BCMath seems to be
> extraordinarily slow for such things as Diffie-Hellman
> calculations...what takes BCMath 40-45 seconds is done by GMP in just
> a few seconds at most.  I am not sure if it is even wise to include
> BCMath support if it is going to over-run PHP's 30-second execution
> limit in most cases.

That's what I found, too. Are you using bcpowmod? My PHP 4 didn't have
it, and the version I wrote was too slow, but the built-in one is
hopefully fast.

Taral <taralx at gmail.com>
"Computer science is no more about computers than astronomy is about
    -- Edsger Dijkstra

More information about the yadis mailing list