Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
math/big: improve threshold calibration #25580
For multiplication and squaring we use different algorithms depending on the input length. We currently have 3 threshold constants to decide which algorithm to use. These are calibrated with TestCalibrate.
This calibration takes multiple minutes to run and the outcome doesn't seem to be that reliable. Last noticed in cl 105075.
Quote @griesemer :
I see three issues: