On Thu, 15 Dec 2022 at 12:00, Dima Pasechnik <
dim...@gmail.com> wrote:
>
> On Thu, Dec 15, 2022 at 9:30 AM Vincent Delecroix
> <
20100.d...@gmail.com> wrote:
> >
> > On Thu, 15 Dec 2022 at 01:42, Dima Pasechnik <
dim...@gmail.com> wrote:
> > >
> > >
> > >
> > > On Wed, 14 Dec 2022, 21:06 Vincent Delecroix, <
20100.d...@gmail.com> wrote:
> > >>
> > >> Note that in #34850 I execute the very same command, namely
> > >> pari("quadclassunit(1 - 2^100)"), once in a fresh python session and
> > >> once preceeded by "import sage.all". So whatever linking and whatever
> > >> threading option has been used to compile pari these are the same for
> > >> both executions.
> > >
> > >
> > >
> > > oops, sorry, I was too quick. I guess here it is a change in memory layout that causes the slowdown.
> >
> > I don't quite believe it. The PARI/GP stack is allocated before the
> > `import sage.all` and is not affected by this call. What kind of
> > change in memory could cause the slowdown here?
>
> It's caused by changes in FPU status, or something like this (the
> latter happened at least once earlier on in Sage, was caused by a
> clang bug, in fact). This time, it is caused by sympy.
>
> If you replace
>
> import sage.all
>
> with
>
> import sympy
>
> you'll get the same slowdown...
>
> You guys should invite me to Luminy and buy me a beer there ;-)