New submission from Justin Peel :
Attached small diff speeds up extracting a gzipped tarball on my machine using
python 3.2 by 3-5%. It will probably be a larger percentage on machines that
have faster hard drives (mine is 5400rpm).
Basically, the changes speed up calculating the checksums by
Changes by Justin Peel :
--
type: -> performance
___
Python tracker
<http://bugs.python.org/issue13031>
___
___
Python-bugs-list mailing list
Unsubscri
Justin Peel added the comment:
poq,
You're quite right. I've added that change too. By the way, four unnecessary
extra tuples are no longer being created for each call to this function too
because of these changes.
--
Added file: http://bugs.python.org/file23232/cpytho
New submission from Justin Peel :
I put the Counter's update and __missing__ methods into C code. The rest of the
existing methods remain the same. The new Counter is at least 2x-10x (or more)
faster for updating depending on the input. I also added a new method,
update_fromsubs, whi
Justin Peel added the comment:
I've done as Antoine asked and made a pure Python PyCounter class and a
C-enhanced Counter class that both use the mixin CounterBase class. I also
added to the tests so that both PyCounter and Counter are tested. I left the
update_fromsubs() method in Co
Justin Peel added the comment:
Okay, I was done submitting. I thought that Antoine was asking for a version
that kept a pure Python version so I did that.
--
___
Python tracker
<http://bugs.python.org/issue10