Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-18 Thread Gonzalo Tornaria
See https://trac.sagemath.org/ticket/34850#comment:65. Do I get that beer in Luminy? Best, Gonzalo On Friday, December 16, 2022 at 5:47:46 PM UTC-3 dim...@gmail.com wrote: > On Fri, Dec 16, 2022 at 4:58 PM David Lowry-Duda > wrote: > > > > On Thu, Dec 15, 2022 at 12:19:28PM +, Dima

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-16 Thread Dima Pasechnik
On Fri, Dec 16, 2022 at 4:58 PM David Lowry-Duda wrote: > > On Thu, Dec 15, 2022 at 12:19:28PM +, Dima Pasechnik wrote: > >On Thu, Dec 15, 2022 at 12:05 PM John Cremona wrote: > >> > >> A propos, which Sage developers will be in Luminy for the COUNT > >> meeting? I will. > >> > >I'm still

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-16 Thread David Lowry-Duda
On Thu, Dec 15, 2022 at 12:19:28PM +, Dima Pasechnik wrote: On Thu, Dec 15, 2022 at 12:05 PM John Cremona wrote: A propos, which Sage developers will be in Luminy for the COUNT meeting? I will. I'm still waiting to hear from them. Or perhaps they don't notify people who haven't made it

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-15 Thread John Cremona
On Thu, 15 Dec 2022 at 12:19, Dima Pasechnik wrote: > > On Thu, Dec 15, 2022 at 12:05 PM John Cremona wrote: > > > > On Thu, 15 Dec 2022 at 12:00, Dima Pasechnik wrote: > > > > > > On Thu, Dec 15, 2022 at 9:30 AM Vincent Delecroix > > > <20100.delecr...@gmail.com> wrote: > > > > > > > > On Thu,

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-15 Thread Dima Pasechnik
On Thu, Dec 15, 2022 at 12:05 PM John Cremona wrote: > > On Thu, 15 Dec 2022 at 12:00, Dima Pasechnik wrote: > > > > On Thu, Dec 15, 2022 at 9:30 AM Vincent Delecroix > > <20100.delecr...@gmail.com> wrote: > > > > > > On Thu, 15 Dec 2022 at 01:42, Dima Pasechnik wrote: > > > > > > > > > > > > >

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-15 Thread John Cremona
On Thu, 15 Dec 2022 at 12:00, Dima Pasechnik wrote: > > On Thu, Dec 15, 2022 at 9:30 AM Vincent Delecroix > <20100.delecr...@gmail.com> wrote: > > > > On Thu, 15 Dec 2022 at 01:42, Dima Pasechnik wrote: > > > > > > > > > > > > On Wed, 14 Dec 2022, 21:06 Vincent Delecroix,

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-15 Thread Dima Pasechnik
On Thu, Dec 15, 2022 at 9:30 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: > > On Thu, 15 Dec 2022 at 01:42, Dima Pasechnik wrote: > > > > > > > > On Wed, 14 Dec 2022, 21:06 Vincent Delecroix, <20100.delecr...@gmail.com> > > wrote: > >> > >> Note that in #34850 I execute the very same

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-15 Thread Vincent Delecroix
On Thu, 15 Dec 2022 at 01:42, Dima Pasechnik wrote: > > > > On Wed, 14 Dec 2022, 21:06 Vincent Delecroix, <20100.delecr...@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

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-14 Thread Dima Pasechnik
On Wed, 14 Dec 2022, 21:06 Vincent Delecroix, <20100.delecr...@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

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-14 Thread Vincent Delecroix
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. In

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-14 Thread Dima Pasechnik
Does #31572 actually mean that pari threads are more harmful than useful? If so, perhaps, we can create a special multithreaded, differerently named, libpari for giac, and build our "main" libpari single-threaded? Dima On Wed, Dec 14, 2022 at 8:38 PM David Roe wrote: > > It could be related to

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-14 Thread David Roe
It could be related to #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 wrote: > I vaguely recall something about the way gp is built, without linking >

Re: [sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-14 Thread Dima Pasechnik
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

[sage-devel] sage is slowding down PARI/GP by factor x2 (roughly)

2022-12-14 Thread Vincent Delecroix
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