Patches item #1316653, was opened at 2005-10-07 18:10 Message generated for change (Comment added) made by rhamphoryncus You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1316653&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: Core (C code) Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: Adam Olsen (rhamphoryncus) Assigned to: Nobody/Anonymous (nobody) Summary: Py_INCREF/Py_DECREF with magic constant demo Initial Comment: This is a simple "proof of concept" patch that shows making Py_INCREF/Py_DECREF be no-ops when ob_refcnt is set to a magic constant (to indicate only cyclic gc should be used here) is not a signifigant performance burden. Normal Py_INCREF/Py_DECREF [EMAIL PROTECTED]:~/src/Python-2.4.1$ ./python Lib/test/pystone.py 500000 Pystone(1.1) time for 500000 passes = 13.34 This machine benchmarks at 37481.3 pystones/second Modified Py_INCREF/Py_DECREF with magic constant [EMAIL PROTECTED]:~/src/Python-2.4.1-sandbox$ ./python Lib/test/pystone.py 500000 Pystone(1.1) time for 500000 passes = 13.38 This machine benchmarks at 37369.2 pystones/second Posting to python-dev will be done momentarily. ---------------------------------------------------------------------- >Comment By: Adam Olsen (rhamphoryncus) Date: 2005-10-11 23:21 Message: Logged In: YES user_id=12364 This was never intended as a usable patch, but rather as a demonstration. Since there doesn't seem to be any flag for that I suppose closing is the next best thing. ---------------------------------------------------------------------- Comment By: Neal Norwitz (nnorwitz) Date: 2005-10-11 22:48 Message: Logged In: YES user_id=33168 Adam IIRC you dropped this idea/went back to the drawing board? Is this patch still valid or should it be closed? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1316653&group_id=5470 _______________________________________________ Patches mailing list [email protected] http://mail.python.org/mailman/listinfo/patches
