Re: [arch-general] Fedora Speeds Up Python 3.

2019-11-26 Thread Geo Kozey via arch-general
> From: Ralph Corderoy > Sent: Tue Nov 26 11:07:36 CET 2019 > To: > Subject: [arch-general] Fedora Speeds Up Python 3. > > > Hi, > > I thought this might be of interest. > https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup >

Re: [arch-general] Fedora Speeds Up Python 3.

2019-11-26 Thread Chris Billington via arch-general
Oh I remember why I didn't override libpython functions with LD_PRELOAD. Python is statically linked to libpython in Ubuntu, which I was using at the time, so it didn't work. Fedora decided not to go that far, but yeah, Ubuntu has already taken that plunge. If LD_PRELOADing libpython doesn't work

Re: [arch-general] Fedora Speeds Up Python 3.

2019-11-26 Thread Chris Billington via arch-general
Ah, that's interesting. I thought that would break my GIL profiling project that uses LD_PRELOAD (shameless plug: https://github.com/chrisjbillington/gil_load), but since I think I'm only overriding libc functions, it should be fine. I'm sure there are other things it will break (I could have ove

[arch-general] Fedora Speeds Up Python 3.

2019-11-26 Thread Ralph Corderoy
Hi, I thought this might be of interest. https://fedoraproject.org/wiki/Changes/PythonNoSemanticInterpositionSpeedup By building with -fno-semantic-interposition they remove the PLT that provides a level of indirection when calling a libpython function. libpython often calls itself and the PLT ad