Testing latest pari + WASM + node.js... and it works?! Wow.
License: GPL3
ubuntu2004
Function: _def_threadsize Class: default Section: default C-Name: sd_threadsize Prototype: Help: Doc: This default is specific to the \emph{parallel} version of PARI and gp (built via \kbd{Configure --mt=prthread} or \kbd{mpi}) and is ignored otherwise. In parallel mode, each thread allocates its own private \tev{stack} for its computations, see \kbd{parisize}. This value determines the size in bytes of the stacks of each thread, so the total memory allocated will be $\kbd{parisize}+\kbd{nbthreads}\times\kbd{threadsize}$. If set to $0$, the value used is the same as \kbd{parisize}. It is not easy to estimate reliably a sufficient value for this parameter because PARI itself will parallelize computations and we recommend to not set this value explicitly unless it solves a specific problem for you. For instance if you see frequent messages of the form \bprog *** Warning: not enough memory, new thread stack 10000002048 @eprog (Meaning that \kbd{threadsize} had to be temporarily increased.) On the other hand we strongly recommend to set \kbd{parisizemax} and \kbd{threadsizemax} to a nonzero value. The default value is $0$.