Thorough Python 2.7.3 Windows Build Documentation?
donarb at nwlink.com
Thu Jan 17 18:51:26 CET 2013
On Jan 17, 7:29 am, "Leonard, Arah" <Arah.Leon... at bruker-axs.com>
> Hello fellow Python programmers,
> I'm building a 32-bit CPython 2.7.3 distro for Windows using the MS Visual Studio Professional 2008 SP1 (and all hotfixes) MSVC 9 compiler. My build works, technically, but it also happens to benchmark over 30% slower than the precompiled binaries in the distributed Python 2.7.3 MSI. Can anyone point me in the direction of some thoroughly detailed build documentation so that I can figure out how to get that 30% back with my build? The only documentation that I can find just says MSVC 9, period. There's no mention of SP1 or not, hotfixes, nor of any specific compiler/linker optimizations used to build the official distro. Something, somewhere, has to be significantly different between our builds for a 30% performance difference, and it'd probably be handy for the Python community to know how to avoid the same pitfall that cost me performance so that we can all get the most out of Python. Any and all help will be greatly appreciated. Thanks.
> Arah Leonard
> Arah Leonard
> Software Development Engineer
> Bruker AXS Inc.
> 5465 East Cheryl Parkway
> Madison, WI 53711
> US Phone: +1 608-276-3812
> Phone: +1 800-234-XRAY(9729)
> Arah.Leon... at bruker-axs.com<mailto:Arah.Leon... at bruker-axs.com>
> The information contained in this email is confidential. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any form of disclosure, reproduction, distribution or any action taken or refrained from in reliance on it, is prohibited and may be unlawful. Please notify the sender immediately.
Try dumping the build configuration parameters:
>>> import pprint, sysconfig
Then you can compare the existing version with yours.
More information about the Python-list