Closed meghuizen closed 11 years ago
The only reason for the current priority is that the system I was on did not have gmp, so I tested bcmath far more deeply. I have no issue swapping them if it's that big of a difference...
According to performance testing done for phpseclib, it seems like a very good idea to prioritize the gmp extension first.
EDIT: I need to learn how to read.
Implemented in PR#10
Looking at this page: http://phpseclib.sourceforge.net/math/intro.html I see that GMP gives better performance then BCMath.
Why then does BigMath::createFromServerConfiguration() have this order?
I suggest to turn it around. Or are there reasons for priority on bcmath?