It could be related to #31572 <https://trac.sagemath.org/ticket/31572>, which notes a dramatic speed regression based on pari being compiled with pthread. David
On Wed, Dec 14, 2022 at 3:30 PM Dima Pasechnik <dimp...@gmail.com> wrote: > I vaguely recall something about the way gp is built, without linking > libpari dynamically, and something about gp getting slower if built with > threads. > > So, probably, more info is needed on how exactly your comparisons are > done, in regard of using, or not, threads, and dynamic linking. > > > > > > On Wed, 14 Dec 2022, 20:23 Vincent Delecroix, <20100.delecr...@gmail.com> > wrote: > >> Dear all, >> >> Some strange phenomenon makes execution of PARI/GP up to twice slower >> when ran inside a Python process compared to its execution in GP. >> Though this is not systematic, in a fresh python environment timing >> are comparable with GP. >> >> The slowdown has been first observed in the context of pari_jupyter >> [1] and then with cypari2 when sage.all is loaded [2]. There is a >> short code snippet in the description of [2] that you can try on your >> own sage version (must be ran with "sage -python" and not "sage"). >> >> Any idea on what could be the source of the slowdown or some profiling >> advices would be very welcome. >> >> [1] https://github.com/sagemath/pari-jupyter/issues/27 >> [2] https://trac.sagemath.org/ticket/34850 >> >> Best >> Vincent >> >> -- >> You received this message because you are subscribed to the Google Groups >> "sage-devel" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to sage-devel+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/sage-devel/CAGEwAAm_%2BVfg%3D6po8-7B4eb7kW2UT%3DHjvXaR7yfUOxL930HhQQ%40mail.gmail.com >> . >> > -- > You received this message because you are subscribed to the Google Groups > "sage-devel" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-devel+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/sage-devel/CAAWYfq2yJEvXbRa8znksXtDm%2B-hkXN_EVpwN09X4tb8EY-0-kA%40mail.gmail.com > <https://groups.google.com/d/msgid/sage-devel/CAAWYfq2yJEvXbRa8znksXtDm%2B-hkXN_EVpwN09X4tb8EY-0-kA%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sage-devel/CAChs6_mqWOpnHAe4-cYTxg63y5ri4vFuJxZRasMUzsEMYzTNAQ%40mail.gmail.com.