Bugs item #995019, was opened at 2004-07-21 08:19 Message generated for change (Comment added) made by ronaldoussoren You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=995019&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Build Group: None Status: Open Resolution: None Priority: 5 Submitted By: Bill Bumgarner (bbum) Assigned to: Jack Jansen (jackjansen) Summary: Ensure -single_module on Mac OS X Initial Comment: When building Python (and disutils based extensions) on Mac OS X, Python should ensure that the -single_module flag is being passed to the linker. This will ensure that any given .so, .dylib, or framework is linked as a single module. This will vastly reduce the startup times of python, reduce the load times of modules, and shave a bit of a performance hit off the top at runtime. This should also be applicable to the modules built by distutils. ---------------------------------------------------------------------- >Comment By: Ronald Oussoren (ronaldoussoren) Date: 2006-06-25 23:23 Message: Logged In: YES user_id=580910 Is this still relevant? ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2004-07-22 23:09 Message: Logged In: YES user_id=45365 Am I doing something wrong? I see absolutely no difference in runtime with this option: I get 0.15 seconds realtime (0.08 user time, system time variable) both with the new OTHER_LIBTOOL_OPT and without it. (This is on a 933Mhz G4 iBook running 10.3.4). I've been trying this with 2.4a1+. What sort of speedups are you guys seeing? ---------------------------------------------------------------------- Comment By: Bob Ippolito (etrepum) Date: 2004-07-21 11:50 Message: Logged In: YES user_id=139309 time python -c pass is probably sufficient.. I guess the patch is to line 114 of Makefile.pre.in.. should change from: OTHER_LIBTOOL_OPT = -prebind -seg1addr 0x10000000 to OTHER_LIBTOOL_OPT = -prebind -seg1addr 0xCFC00000 -single_module Note I picked an arbitrary, probably unused, seg1addr. 0x10000000 is *NOT* correct! It's in the Application Address Range!!!! See: http://developer.apple.com/documentation/Performance/Conceptual/ LaunchTime/index.html ---------------------------------------------------------------------- Comment By: Jack Jansen (jackjansen) Date: 2004-07-21 11:21 Message: Logged In: YES user_id=45365 Could either of you come up with a patch? Also, how would I measure any improvement, "time python -c pass" or are there other things that are influenced as well? ---------------------------------------------------------------------- Comment By: Bob Ippolito (etrepum) Date: 2004-07-21 10:25 Message: Logged In: YES user_id=139309 Not in the least. ---------------------------------------------------------------------- Comment By: Sjoerd Mullender (sjoerd) Date: 2004-07-21 08:57 Message: Logged In: YES user_id=43607 Is this related to bug 799088? ---------------------------------------------------------------------- Comment By: Bill Bumgarner (bbum) Date: 2004-07-21 08:35 Message: Logged In: YES user_id=103811 This is not applicable to the distutils modules as they are built now; only applicable to Python.framework (and like builds). ---------------------------------------------------------------------- Comment By: Bob Ippolito (etrepum) Date: 2004-07-21 08:29 Message: Logged In: YES user_id=139309 [I'm closing 995023, because bbum filed first] distutils extensions can not use -single_module because they are bundles, not dylibs. Frameworks and dylibs are synonymous, of course. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=995019&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com