| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This will allow us to control in the future whether to use framing or not.
For example, we may want to turn it off for tiny pickle where it doesn't
help.
The change also improves performance slightly:
### fastpickle ###
Min: 0.608517 -> 0.557358: 1.09x faster
Avg: 0.798892 -> 0.694738: 1.15x faster
Significant (t=3.45)
Stddev: 0.17145 -> 0.12704: 1.3496x smaller
Timeline: http://goo.gl/3xQE1J
### pickle_dict ###
Min: 0.669920 -> 0.615271: 1.09x faster
Avg: 0.733633 -> 0.645058: 1.14x faster
Significant (t=5.05)
Stddev: 0.12041 -> 0.02961: 4.0662x smaller
Timeline: http://goo.gl/LpLSXI
### pickle_list ###
Min: 0.397583 -> 0.368112: 1.08x faster
Avg: 0.412784 -> 0.397223: 1.04x faster
Significant (t=2.78)
Stddev: 0.01518 -> 0.03653: 2.4068x larger
Timeline: http://goo.gl/v39E59
### unpickle_list ###
Min: 0.692935 -> 0.594870: 1.16x faster
Avg: 0.730012 -> 0.628395: 1.16x faster
Significant (t=17.76)
Stddev: 0.02720 -> 0.02995: 1.1012x larger
Timeline: http://goo.gl/2P9AEt
The following not significant results are hidden, use -v to show them:
fastunpickle.
|
| | |
|
| |
| |
| |
| | |
Most of the work is by Alexandre.
|
|\ \
| |/
| |
| | |
in docstrings and comments.
|
| |
| |
| |
| | |
in docstrings and comments.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
to correctly process the opcode when it is used on non-list objects.
|
|/
|
|
|
|
|
|
|
|
|
|
|
| |
The C version tried to remove trailing whitespace between the last quote and
the newline character. I am not sure why it had this because pickle never
generated such pickles---for this to happen repr(some_string) would need to
return trailing whitespace. It was maybe there to make it easier for people
to write pickles in text editors. Anyhow, the Python version doesn't do this
so there is no point keeping this around anymore.
Also, I've changed the exception raised when a bad pickle is encountered.
Again this unlikely to make much difference to anyone though it does make
testing slightly nicer for us.
|
| |
|
|\ |
|
| |
| |
| |
| | |
by Marius Gedminas.
|
|\ \
| |/
| |
| |
| |
| | |
pickle module.
Patch by Stefan Mihaila.
|
| |
| |
| |
| |
| |
| | |
pickle module.
Patch by Stefan Mihaila.
|
| |
| |
| |
| | |
Thanks for James Sanders for the bug report and the patch.
|
| |
| |
| |
| |
| |
| | |
attribute which allows to set custom per-pickler reduction functions.
Patch by sbt.
|
|\ \
| |/ |
|
| |
| |
| |
| | |
Initial patch by sbt.
|
| | |
|
|\ \
| |/
| |
| |
| | |
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
|
| |
| |
| |
| |
| | |
- bigmemtest is replaced by precisionbigmemtest
- add a poor man's watchdog thread to print memory consumption
|
|\ \
| |/
| |
| |
| | |
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
|
| |
| |
| |
| |
| | |
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
|
|\ \
| |/ |
|
| | |
|
|\ \
| |/
| |
| | |
the C pickle implementation.
|
| |
| |
| |
| | |
the C pickle implementation.
|
|\ \
| |/
| |
| | |
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
|
| |
| |
| |
| | |
(more than 2**31 items). Instead, in most cases, an OverflowError is raised.
|
| | |
|
| |
| |
| |
| | |
between 2**31 and 2**63 on systems with a 64-bit C "long".
|
|\ \
| |/
| |
| | |
(protocol 0, mostly) pickles.
|
| |
| |
| |
| | |
(protocol 0, mostly) pickles.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88546 | alexander.belopolsky | 2011-02-24 14:40:09 -0500 (Thu, 24 Feb 2011) | 3 lines
Issue #11286: Fixed unpickling of empty 2.x strings.
........
|
| | |
|
| | |
|
|/
|
|
|
|
|
|
|
|
|
| |
Many tests simply didn't care if they unset a pre-existing trace function. This
made test coverage impossible. This patch fixes various tests to put back any
pre-existing trace function. It also introduces test.support.no_tracing as a
decorator which will temporarily unset the trace function for tests which
simply fail otherwise.
Thanks to Kristian Vlaardingerbroek for helping to find the cause of various
trace function unsets.
|
| |
|
|
|
|
| |
test_multiprocessing's misbehaviour.
|
| |
|
|
|
|
| |
method.
|
|
|
|
|
| |
speedups up to 4x (depending on the benchmark). Mostly ported from
Unladen Swallow; initial patch by Alexandre Vassalotti.
|
|
|
|
| |
python when they contain instances of old-style classes.
|
|
|
|
|
| |
encoding unicode as utf8 to support lone surrogates and stay compatible with
Python 2.x and 3.0
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77727 | ezio.melotti | 2010-01-24 18:58:36 +0200 (Sun, 24 Jan 2010) | 1 line
use assert[Not]IsInstance where appropriate
........
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77352 | antoine.pitrou | 2010-01-07 18:46:49 +0100 (jeu., 07 janv. 2010) | 5 lines
Issue #7455: Fix possible crash in cPickle on invalid input. Patch by
Florent Xicluna.
........
r77353 | antoine.pitrou | 2010-01-07 18:49:37 +0100 (jeu., 07 janv. 2010) | 3 lines
Fix attribution. Florent actually repackaged and reviewed Victor's patch (sorry!).
........
r77354 | antoine.pitrou | 2010-01-07 18:54:10 +0100 (jeu., 07 janv. 2010) | 3 lines
Fix reattribution mistake when fixing attribution mistake!
........
|
|
|
|
| |
references to long in py3k. Patch provided by flox.
|