Skip to content

Commit 4bf27cb

Browse files
committed
40081: just an attempt
1 parent 213d7d4 commit 4bf27cb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/libs/pari/__init__.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,11 @@ def _get_pari_instance():
186186
"""
187187
stack_initial = 1024 * 1024
188188
stack_max = 1024 * stack_initial
189+
try:
190+
import khoca
191+
stack_initial *= 16
192+
except ImportError:
193+
pass
189194
P = Pari(stack_initial, stack_max)
190195

191196
# pari_init_opts() overrides MPIR's memory allocation functions,

0 commit comments

Comments
 (0)