[Python-Dev] patch: speed up name access by up to 80% (original) (raw)

Sean Reifschneider jafo@tummy.com
Fri, 22 Feb 2002 16:01:27 -0700


On Mon, Feb 11, 2002 at 05:55:38PM -0500, Oren Tirosh wrote:

I got strage results comparing to the python2.2 RPM package (some faster, some slower). I didn't start to get consistent results until I used two

The 2.2-3 RPM from python.org does "./configure --prefix=/usr" (unless you enable the pymalloc or ipv6 flags before building, the RPMs up there do not). It then does "make".

About the only thing that may be unusual would be that RPM may automatically strip the resulting binary. I'm not doing it manually.

Interesting that you're seeing oddness. Note that if you download the SRPM, you can install the .src.rpm and then build it by doing:

rpm -bc /usr/src/redhat/SPECS/python-2.2.spec

(or other similar location that the spec file would be installed depending on your distribution). Also note that you can have it build a patched version by adding the patch below the "Patch1:" line as "Patch2:", and also add a line below "%patch1" which reads "%patch2" (unless you have to give options such as "-p1" -- see the example for "%patch0"). You can then do a fresh build of the code using the above command. You can also build an RPM by using "rpm -ba [...]".

One of the big wins with a packaging system -- reproducability...

Sean

Let us live!!! Let us love!!! Let us share the deepest secrets of our souls!!! You first. Sean Reifschneider, Inimitably Superfluous <jafo@tummy.com> tummy.com - Linux Consulting since 1995. Qmail, KRUD, Firewalls, Python