aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2023-05-20 12:00:38 +0200
committerCarl Friedrich Bolz-Tereick <cfbolz@gmx.de>2023-05-20 12:00:38 +0200
commitfdc1e4b0d50b8243aa3dfe28d9f3820512903cb4 (patch)
tree5e4cb10ce592e2bbf5ab061287a47db629f6d520
parentsome more tests for fromrarith_int (diff)
downloadpypy-fdc1e4b0d50b8243aa3dfe28d9f3820512903cb4.tar.gz
pypy-fdc1e4b0d50b8243aa3dfe28d9f3820512903cb4.tar.bz2
pypy-fdc1e4b0d50b8243aa3dfe28d9f3820512903cb4.zip
after some more testing: we can reduce the minimum size for when to use the new
algorithm for rbigint.fromstr
-rw-r--r--rpython/rlib/rbigint.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
index e3b3e617ce..ce19b7e377 100644
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -2265,7 +2265,7 @@ class LimitHolder:
HOLDER = LimitHolder()
HOLDER.DIV_LIMIT = 21
HOLDER.STR2INT_LIMIT = 2048
-HOLDER.MINSIZE_STR2INT = 6000
+HOLDER.MINSIZE_STR2INT = 4000
def _extract_digits(a, startindex, numdigits):