26 Nov
2019
26 Nov
'19
10:35 a.m.
From: Ralph Corderoy <ralph@inputplus.co.uk> Sent: Tue Nov 26 11:07:36 CET 2019 To: <arch-general@archlinux.org> Subject: [arch-general] Fedora Speeds Up Python 3.
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 adds L1-cache pressure plus prevents inlining. Gives gains of 25% on some workloads.
-- Cheers, Ralph.
Does it work alongside "-fno-plt" flag that Arch uses? Yours sincerely G. K.