[issue15079] pickle: Possibly misplaced test

2012-06-15 Thread Collin Winter
Changes by Collin Winter : -- nosy: -collinwinter ___ Python tracker <http://bugs.python.org/issue15079> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13430] Add a curry function to the functools module

2011-11-19 Thread Collin Winter
Collin Winter added the comment: I assume I was added to this thread since I wrote the functional module, so I'll give my take in that capacity. IMO Python doesn't need a more general version of partial(); indeed, I question the need for partial() as it is today. Querying Google C

[issue9285] Add a profile decorator to profile and cProfile

2011-07-13 Thread Collin Winter
Changes by Collin Winter : -- nosy: -collinwinter ___ Python tracker <http://bugs.python.org/issue9285> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2011-07-11 Thread Collin Winter
Changes by Collin Winter : -- nosy: -collinwinter ___ Python tracker <http://bugs.python.org/issue2636> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5572] distutils ignores the LIBS configure env var

2011-06-24 Thread Collin Winter
Collin Winter added the comment: I have no interest in forward-porting the patch, closing accordingly. At least there will be a record of this patch for anyone interested in getting a free 10% performance boost for their Python 2.x or 3.[012] systems. -- assignee: tarek

[issue5572] distutils ignores the LIBS configure env var

2011-06-17 Thread Collin Winter
Collin Winter added the comment: I have provided justification in the original patch submission. Without this patch, we were unable to cleanly apply gcc's feedback-directed optimization system to Python. FDO yields significant performance improve

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2011-06-16 Thread Collin Winter
Collin Winter added the comment: I don't know that the variables are Python-specific. We used these variables to build various Python modules statically against the versions of openssl and sqlite maintained in Google's internal third-party repository. -- assignee: co

[issue5572] distutils ignores the LIBS configure env var

2011-06-16 Thread Collin Winter
Collin Winter added the comment: This wasn't so much a feature request as a request for review. I had already implemented the necessary changes and provided a patch. We found this change necessary when working on Unladen Swallow. -- ___ P

[issue1625576] add ability to specify name to os.fdopen

2010-11-11 Thread Collin Winter
Collin Winter added the comment: Christian: yes, that sounds fine. -- assignee: collinwinter -> ___ Python tracker <http://bugs.python.org/issue1625576> ___ _

[issue1731717] race condition in subprocess module

2010-07-31 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter, jyasskin ___ Python tracker <http://bugs.python.org/issue1731717> ___ ___ Python-bugs-list mailing list Unsub

[issue1107887] Speed up function calls/can add more introspection info

2010-06-16 Thread Collin Winter
Collin Winter added the comment: I tried making this work early last year as part of Unladen Swallow, and even though I got it working and it does speed up certain builtin calls, it didn't move overall application performance at all. I believe this was due to cache effects, b

[issue8566] 2to3 should run under python 2.5

2010-04-28 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue8566> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1518] Fast globals/builtins access (patch)

2010-03-17 Thread Collin Winter
Collin Winter added the comment: Antoine: yes, this optimization is already implemented in the Unladen JIT. -- ___ Python tracker <http://bugs.python.org/issue1

[issue6713] Integer & Long types: Performance improvement of 1.6x to 2x for base 10 conversions

2009-09-10 Thread Collin Winter
Collin Winter added the comment: I ran this patch against Unladen Swallow's slowspitfire template benchmark, which does more int->string conversions than any of our other benchmarks. When run against Python trunk r74737, I get these results: slowspitfire: Min: 0.888772 -> 0.8

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-08-12 Thread Collin Winter
Collin Winter added the comment: FYI, Unladen Swallow includes several regex benchmark suites: a port of V8's regex benchmarks (regex_v8); some of the regexes used when tuning the existing sre engine 7-8 years ago (regex_effbot); and a regex_compile benchmark that tests regex compil

[issue6643] joining a child that forks can deadlock in the forked child process

2009-08-11 Thread Collin Winter
Changes by Collin Winter : -- components: +Interpreter Core nosy: +collinwinter, jyasskin ___ Python tracker <http://bugs.python.org/issue6643> ___ ___ Python-bug

[issue6293] Have regrtest.py echo back sys.flags

2009-06-16 Thread Collin Winter
New submission from Collin Winter : This patch makes regrtest.py echo back the contents of sys.flags at the beginning of a test run. Unladen Swallow has found this useful for verifying that the regrtest.py settings in the Makefile and in our Buildbot configs are interacting as expected

[issue6292] Fix tests to work with -OO

2009-06-16 Thread Collin Winter
New submission from Collin Winter : The attached patch fixes a number of tests to work when -OO is given to Python. The majority of these tests are docstring-related, either doctests or making assertions about __doc__, with a handful of tests testing that assert statements will trigger and

[issue6250] Python compiles dead code

2009-06-15 Thread Collin Winter
Collin Winter added the comment: Standalone bytecode-modifying tools almost never check that they're outputting correct bytecode. http://code.activestate.com/recipes/277940/ makes no attempt to check what version of Python it's running under; running it under Unladen Swallow 2009Q1

[issue6250] Python compiles dead code

2009-06-10 Thread Collin Winter
Collin Winter added the comment: As another data point, Unladen Swallow had to take explicit steps to deal with this dead code when compiling bytecode to machine code. Since Python's compiler isn't smart enough to ignore code following a "return" or "raise" in th

[issue1943] improved allocation of PyUnicode objects

2009-06-03 Thread Collin Winter
Collin Winter added the comment: On Wed, Jun 3, 2009 at 2:36 AM, Marc-Andre Lemburg wrote: > Marc-Andre Lemburg added the comment: >> All this is assuming the speed-up is important enough to bother.  Has >> anyone run a comparison benchmark using the Unladen Swallow benchmarks?

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Collin Winter
Collin Winter added the comment: On Fri, May 29, 2009 at 3:45 PM, Martin v. Löwis wrote: > py> s = "" > py> s.join is s.join > False > > Every time you read it, you get a new object. Not what I would call a > constant. If you don't see how this matter

[issue6133] LOAD_CONST followed by LOAD_ATTR can be optimized to just be a LOAD_COST

2009-05-29 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue6133> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6132] Implement the GIL with critical sections in Windows

2009-05-27 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue6132> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-05-26 Thread Collin Winter
Collin Winter added the comment: Fixed in r72930 (trunk), r72931 (2.6), r72942 (py3k). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue5670] Speed up pickling of dicts in cPickle

2009-05-24 Thread Collin Winter
Collin Winter added the comment: Fixed the len(d) == 1 size regression. Final performance of the patch relative to trunk: Using Unladen Swallow's perf.py -b pickle,pickle_dict on trunk: pickle: Min: 2.238 -> 1.895: 18.08% faster Avg: 2.241 -> 1.898: 18.04% faster Significant (t=28

[issue5866] cPickle defect with tuples and different from pickle output

2009-05-24 Thread Collin Winter
Changes by Collin Winter : -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issue5866> ___ ___ Python-bugs-list mailing list Unsubscri

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-05-24 Thread Collin Winter
Collin Winter added the comment: Bug-fix patch attached. Alexandre, can you take a look? Feel free to bounce it back if you don't have time. I'll port to 2.6 and py3k once this is reviewed for trunk. -- keywords: +26backport, easy, patch nosy: +alexandre.vassalotti stage:

[issue6066] POP_MARK was not in pickle protocol 0

2009-05-20 Thread Collin Winter
Collin Winter added the comment: Applied in r72792 (trunk), r72793 (py3k), r72808 (release26-maint). -- assignee: -> collinwinter resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6066] POP_MARK was not in pickle protocol 0

2009-05-19 Thread Collin Winter
New submission from Collin Winter : Lib/pickletools.py incorrectly thinks POP_MARK was part of protocol 0; POP_MARK was only added with the introduction of protocol 1 in r7753. This mistake led me down a dead end while fixing another pickling issue. Alexandre, can you double-check me on this

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-18 Thread Collin Winter
Collin Winter added the comment: Applied as r72777 (trunk), r72778 (py3k). -- assignee: -> collinwinter resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6002] test_urllib2_localnet DigestAuthHandler leaks nonces

2009-05-18 Thread Collin Winter
Collin Winter added the comment: Daniel Diniz reviewed in the other issue. Fixed in r72777 (trunk), r72778 (py3k). -- assignee: -> collinwinter resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6002] test_urllib2_localnet DigestAuthHandler leaks nonces

2009-05-18 Thread Collin Winter
Collin Winter added the comment: I've posted a patch in issue 6032 (didn't see this one); I'd be interested in any comments on the approach taken there. -- nosy: +collinwinter ___ Python tracker <http://bugs.py

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-18 Thread Collin Winter
Collin Winter added the comment: Daniel, did you have any comments on this patch? If not, I'll go ahead and commit it and close both of these issues. -- ___ Python tracker <http://bugs.python.org/i

[issue6042] Document and slightly simplify lnotab tracing

2009-05-16 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue6042> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1943] improved allocation of PyUnicode objects

2009-05-16 Thread Collin Winter
Collin Winter added the comment: Daniel, which patch? freelists2.patch or unialloc4.patch? If these are targeted py3k (judging by the "Versions" selector above), none of Unladen Swallow's benchmarks work under 3k (we

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-15 Thread Collin Winter
Collin Winter added the comment: Yes, this is a patch for issue 6002 (sorry, didn't find it). I haven't seen any refleaks from issue 1208304, but I was only looking at this one particular failure (since it was showing up in Unladen Swallow's

[issue6032] Fix refleaks in test_urllib2_localnet

2009-05-15 Thread Collin Winter
New submission from Collin Winter : Currently (r72673), test_urllib2_localnet leaks references. This is due to state implicitly shared between tests. The attached patch fixes this by removing the shared state. The problem is also present in py3k. I'll port the patch once I commit to

[issue6024] regrtest says refleaks are "ok"

2009-05-14 Thread Collin Winter
Collin Winter added the comment: Applied in r72658 (trunk) and r72660 (py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6024] regrtest says refleaks are "ok"

2009-05-14 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file13985/refleak.patch ___ Python tracker <http://bugs.python.org/issue6024> ___ ___ Python-bugs-list m

[issue6024] regrtest says refleaks are "ok"

2009-05-14 Thread Collin Winter
Changes by Collin Winter : Added file: http://bugs.python.org/file13986/refleak.patch ___ Python tracker <http://bugs.python.org/issue6024> ___ ___ Python-bugs-list mailin

[issue6024] regrtest says refleaks are "ok"

2009-05-14 Thread Collin Winter
New submission from Collin Winter : Currently (r72643), regrtest.py -R:: says that a test passed even if it leaked references: trunk collinwinter$ ./python.exe Lib/test/regrtest.py -R:: test_urllib2_localnet test_urllib2_localnet beginning 9 repetitions 123456789 . test_urllib2_localnet

[issue5572] distutils ignores the LIBS configure env var

2009-05-04 Thread Collin Winter
Collin Winter added the comment: 2009/5/4 <"Tarek Ziadé "@psf.upfronthosting.co.za>: > About the patch: > > is there a particular reason why you have changed the call to > 'set_library' into calls to 'add_library' in build_ext in your patch ?

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-04-24 Thread Collin Winter
Collin Winter added the comment: Interestingly, it only fails with protocol 0: >>> v = ([],) >>> v[0].append(v) >>> import pickle,cPickle >>> cPickle.loads(pickle.dumps(v, 0)) Traceback (most recent call last): File "", line 1, in cPick

[issue5794] pickle/cPickle of recursive tuples create pickles that cPickle can't load

2009-04-24 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue5794> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5665] Add more pickling tests

2009-04-15 Thread Collin Winter
Collin Winter added the comment: Committed as r71408 (trunk) and r71638 (py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5665] Add more pickling tests

2009-04-11 Thread Collin Winter
Collin Winter added the comment: Yes, I'm porting them. I got started, but got distracted by other things since there were a lot of conflicts in the merge -- ___ Python tracker <http://bugs.python.org/i

[issue5665] Add more pickling tests

2009-04-08 Thread Collin Winter
Collin Winter added the comment: > Ok if it doesn't take too long to run the tests (which may imply > implementing something like Raymond's suggestion of randomizing test > order, if you haven't already done so). I did something similar: if you don't pass the -uxpi

[issue5665] Add more pickling tests

2009-04-08 Thread Collin Winter
Collin Winter added the comment: If no-one has any objections to the xpickle resource included in the latest version of the patch, I'd like to commit this soon so that we can be more confident in the other changes I have queued up. If I no-one objects, I'll commit this sometime earl

[issue3873] Unpickling is really slow

2009-04-06 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue3873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2389] Array pickling exposes internal memory representation of elements

2009-04-03 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue2389> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3675] Python 2.6 can't read sets pickled with Python 3.0

2009-04-03 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue3675> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5634] cPickle error in case of recursion limit

2009-04-03 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue5634> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5683] Speed up cPickle's pickling generally

2009-04-03 Thread Collin Winter
New submission from Collin Winter : This patch simplifies cPickle's complicated internal buffering system. The new version uses a single buffer closer to the Pickler object, flushing to a file object only when necessary. This avoids the overhead of several indirection layers for wha

[issue5681] Add a simple pickle optimizer to cPickle

2009-04-03 Thread Collin Winter
New submission from Collin Winter : Bah, hit enter too soon. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5681] Add a simple pickle optimizer to cPickle

2009-04-03 Thread Collin Winter
Changes by Collin Winter : -- components: Extension Modules files: cpickle_writes.patch keywords: needs review, patch nosy: alexandre.vassalotti, collinwinter severity: normal status: open title: Add a simple pickle optimizer to cPickle type: performance versions: Python 2.7, Python 3.1

[issue5670] Speed up pickling of dicts in cPickle

2009-04-03 Thread Collin Winter
Collin Winter added the comment: Amaury, I can't reproduce the issue you're seeing with empty dicts. Here's what I'm doing: dhcp-172-19-19-199:trunk collinwinter$ ./python.exe Python 2.7a0 (trunk:71100M, Apr 3 2009, 14:40:49) [GCC 4.0.1 (Apple Inc. build 5490)]

[issue5670] Speed up pickling of dicts in cPickle

2009-04-03 Thread Collin Winter
Collin Winter added the comment: FYI, I just added a pickle_dict microbenchmark to perf.py. Using this new microbenchmark, I see these results (perf.py -r -b pickle_dict): pickle_dict: Min: 2.092 -> 1.341: 56.04% faster Avg: 2.126 -> 1.360: 56.37% faster Significant (t=216.895643, a=0.

[issue5665] Add more pickling tests

2009-04-03 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file13571/pickle_tests.patch ___ Python tracker <http://bugs.python.org/issue5665> ___ ___ Python-bug

[issue5665] Add more pickling tests

2009-04-03 Thread Collin Winter
Collin Winter added the comment: Updated the patch to include a regrtest xpickle resource, which restricts if the backwards compat tests will be run. For normal development, the existing tests should be fine; you only need these tests if you're mucking with the pickle output. Added back

[issue5665] Add more pickling tests

2009-04-03 Thread Collin Winter
Collin Winter added the comment: test_xpickle currently takes over three minutes on my MacBook Pro to test compatibility with Python 2.4, 2.5 and 2.6, and adding tests for the pickle module will at least double that, if not push it well above 10 minutes. That's why I recommend usin

[issue5665] Add more pickling tests

2009-04-03 Thread Collin Winter
Collin Winter added the comment: I've made test_xpickle support Python 2.4 because it uses Python 2.4, 2.5 and 2.6 to check that we haven't broken backwards compatibility with those versions. I made AbstractCompatTests use cPickle because that's what I've been changing :)

[issue5671] Speed up pickling of lists in cPickle

2009-04-03 Thread Collin Winter
Collin Winter added the comment: I've added a microbenchmark to perf.py called pickle_list. Running that on this change (perf.py -r -b pickle_list): pickle_list: Min: 1.126 -> 0.888: 26.86% faster Avg: 1.154 -> 0.906: 27.43% faster Significant (t=115.404547, a=0.95) That's pr

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Collin Winter
Collin Winter added the comment: Antoine: pickletester.py:test_newobj_generic() appears to test dict subclasses, though in a roundabout-ish way. I don't know of any tests for dict subclasses in the C level sense (ie, PyDict_Check() vs PyDict_CheckExact()). I can add more explicit test

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Collin Winter
Collin Winter added the comment: No, we haven't started looking at other serialization formats yet. Marshal will probably be my next target, with json being a lower priority. There were enough instances of low-hanging fruit in cPickle that I didn't go looking at the other implement

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Collin Winter
Collin Winter added the comment: On Thu, Apr 2, 2009 at 12:20 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > By the way, could the same approach be applied to lists and sets as well? Certainly; see http://bugs.python.org/issue5671 for the list version. It doe

[issue5671] Speed up pickling of lists in cPickle

2009-04-02 Thread Collin Winter
New submission from Collin Winter : The attached patch adds another version of cPickle.c's batch_list(), batch_list_exact(), which is specialized for "type(x) is list". This provides a nice performance boost when pickling objects that use lists. This is similar to the approach

[issue5670] Speed up pickling of dicts in cPickle

2009-04-02 Thread Collin Winter
New submission from Collin Winter : The attached patch adds another version of cPickle.c's batch_dict(), batch_dict_exact(), which is specialized for "type(x) is dict". This provides a nice performance boost when pickling objects that use dictionaries: Pickle: Min: 2.216 -> 1.

[issue5665] Add more pickling tests

2009-04-01 Thread Collin Winter
New submission from Collin Winter : The attached patch adds more tests for pickling: - Add tests for the module-level load() and dump() functions. - Add tests for cPickle's internal data structures, stressing workloads with many gets/puts. - Add tests for the Pickler and Unpickler classe

[issue1714451] subprocess.py problems errors when calling cmd.exe

2009-03-30 Thread Collin Winter
Collin Winter added the comment: Do you know of anyone actively working on Windows support? If not, I say close it as "won't fix". -- ___ Python tracker <http://bugs.pytho

[issue5588] Add --randseed to regrtest

2009-03-28 Thread Collin Winter
Collin Winter added the comment: Committed as r70672 (trunk) and r70673 (py3k). Thanks for the quick review. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5588] Add --randseed to regrtest

2009-03-28 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file13446/randseed.patch ___ Python tracker <http://bugs.python.org/issue5588> ___ ___ Python-bugs-list m

[issue5588] Add --randseed to regrtest

2009-03-28 Thread Collin Winter
Collin Winter added the comment: The "if rand_seed:" bit was a relic from a previous iteration; fixed. The only reason I didn't use randrange() is that I didn't see it; fixed. -- Added file: http://bugs.python.org/file13448/randseed.patch __

[issue5588] Add --randseed to regrtest

2009-03-28 Thread Collin Winter
New submission from Collin Winter : Add the ability to control the random seed used by regrtest.py -r. This patch adds a --randseed option, and makes regrtest.py -r indicate what random seed it's using so that that value can later be fed back to --randseed. This option is useful for tra

[issue5557] Byte-code compilation uses excessive memory

2009-03-26 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue5557> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5575] Add env vars for controlling building sqlite, hashlib and ssl

2009-03-26 Thread Collin Winter
New submission from Collin Winter : This patch adds SSL_ROOT, SQLITE_INC and SQLITE_LIB environment variables used to inject additional libraries/headers for building the sqlite, hashlib and ssl modules. We've found this very useful for building these modules against their depende

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Collin Winter
Collin Winter added the comment: The patch attached to issue 5060 seems very tightly focused on a problem with gcc FDO. This is a more general patch that solves the problem of distutils ignoring LIBS. -- ___ Python tracker <http://bugs.python.

[issue5572] distutils ignores the LIBS configure env var

2009-03-26 Thread Collin Winter
New submission from Collin Winter : If you pass LIBS to ./configure (as in "LIBS=-lgcov ./configure"), distutils ignores this when building extension modules, which breaks when using certain gcc options which require certain libraries (I'm thinking of -fprofile-generate). The

[issue5362] Add configure option to disable Py3k warnings

2009-02-25 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file13183/no_py3k_warning.patch ___ Python tracker <http://bugs.python.org/issue5362> ___ ___ Python-bug

[issue5362] Add configure option to disable Py3k warnings

2009-02-25 Thread Collin Winter
Collin Winter added the comment: Bah, forgot to run autoreconf. Fixed. Added file: http://bugs.python.org/file13184/no_py3k_warning.patch ___ Python tracker <http://bugs.python.org/issue5

[issue5362] Add configure option to disable Py3k warnings

2009-02-25 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file13168/no_py3k_warning.patch ___ Python tracker <http://bugs.python.org/issue5362> ___ ___ Python-bug

[issue5362] Add configure option to disable Py3k warnings

2009-02-25 Thread Collin Winter
Collin Winter added the comment: Jeffrey: updated the patch to address your concerns. Martin: I'm not sure I completely understand it either, though it seems similar to issue4477. In the course of developing this patch, I tried also #ifdef'ing out all usages of the Py_Py3kWarningF

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-25 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue2636> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5372] Distutils inappropriately reuses .o files between extension modules

2009-02-25 Thread Collin Winter
New submission from Collin Winter : (Tarek, I've been told you're the new distutils maintainer. Feel free to unassign this if that isn't the case.) The test distutils uses to decide whether it needs to recompile an existing .o file when building extension modules is too sim

[issue5362] Add configure option to disable Py3k warnings

2009-02-24 Thread Collin Winter
New submission from Collin Winter : The attached patch adds a --with-py3k-warnings option to configure. Passing --without-py3k-warnings disables all Py3k compatibility warnings (the default is to keep the warnings). For production deployments where performance is more important than warnings no

[issue2459] speedup for / while / if with better bytecode

2009-02-20 Thread Collin Winter
Collin Winter added the comment: On Fri, Feb 13, 2009 at 3:23 PM, Collin Winter wrote: > On Fri, Feb 13, 2009 at 10:37 AM, Antoine Pitrou > wrote: >> Before committing I want to know what to do with the new jump opcodes, >> with respect to the alternative proposal

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-20 Thread Collin Winter
Collin Winter added the comment: Committed as r69811. -- resolution: -> accepted status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-13 Thread Collin Winter
Changes by Collin Winter : Removed file: http://bugs.python.org/file12962/faster_modulo.patch ___ Python tracker <http://bugs.python.org/issue5176> ___ ___ Python-bug

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-13 Thread Collin Winter
Collin Winter added the comment: Updated the patch to use only PyString_CheckExact(); added a test for the behaviour of string subclasses wrt the % operator. There's a very slight performance hit when using % with numbers, but it's so small as to be statistically insignificant. If it

[issue2459] speedup for / while / if with better bytecode

2009-02-13 Thread Collin Winter
Collin Winter added the comment: On Fri, Feb 13, 2009 at 10:37 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Hello Collin, > > Thanks for taking a look. > >> I don't see the changes to the lnotab format being a roadblock; just >>

[issue2459] speedup for / while / if with better bytecode

2009-02-13 Thread Collin Winter
Collin Winter added the comment: I don't see the changes to the lnotab format being a roadblock; just mention it in NEWS. Likewise, the pure-Python compiler package shouldn't be a high priority; your changes to that package look good enough. I'm seeing encouraging speed-ups ou

[issue4751] Patch for better thread support in hashlib

2009-02-12 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter, jyasskin ___ Python tracker <http://bugs.python.org/issue4751> ___ ___ Python-bugs-list mailing list Unsub

[issue5176] Special-case string formatting in BINARY_MODULO implementation

2009-02-06 Thread Collin Winter
New submission from Collin Winter : This patch speeds up the string formatting % operator by avoiding the unnecessary indirection in PyNumber_Remainder(). This particularly benefits templating systems that do a lot of string formatting via %. Performance tested with gcc 4.3.1 x86_64 on Linux

[issue5084] unpickling does not intern attribute names

2009-02-02 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter, jyasskin ___ Python tracker <http://bugs.python.org/issue5084> ___ ___ Python-bugs-list mailing list Unsub

[issue2459] speedup for / while / if with better bytecode

2009-01-26 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter ___ Python tracker <http://bugs.python.org/issue2459> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1518] Fast globals/builtins access (patch)

2009-01-23 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter, jyasskin type: feature request -> performance ___ Python tracker <http://bugs.python.org/issue1518> ___ _

[issue4896] Faster why variable manipulation in ceval.c

2009-01-16 Thread Collin Winter
Collin Winter added the comment: Another data point: I've tested this patch applied to trunk on Core 2 Duo and Opteron 8214 HE machines using both gcc 4.0.3 and 4.3.1, and I'm seeing mixed results. Pybench with warp 1 is between ~1.5% slower and ~1% faster, depending on gcc versi

[issue4941] Tell GCC Py_DECREF is unlikely to call the destructor

2009-01-16 Thread Collin Winter
Changes by Collin Winter : -- nosy: +collinwinter, jyasskin ___ Python tracker <http://bugs.python.org/issue4941> ___ ___ Python-bugs-list mailing list Unsub

[issue1700288] Armin's method cache optimization updated for Python 2.6

2009-01-15 Thread Collin Winter
Collin Winter added the comment: Looks like this was re-applied in r59943 and r59944. Thanks for taking care of this, Amaury. -- nosy: +collinwinter, jyasskin resolution: accepted -> fixed status: open -> closed ___ Python tracker

[issue4715] optimize bytecode for conditional branches

2009-01-13 Thread Collin Winter
Collin Winter added the comment: On Tue, Jan 13, 2009 at 3:25 PM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Hello, > >> I've backported condbranches-plus.patch to trunk, and I'm getting these >> results: > > Thanks! > >&

  1   2   >