[issue15596] pickle: Faster serialization of Unicode strings

2013-04-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 09a84091ae96 by Antoine Pitrou in branch 'default': Issue #15596: Faster pickling of unicode strings. http://hg.python.org/cpython/rev/09a84091ae96 -- nosy: +python-dev ___ Python tracker

[issue15596] pickle: Faster serialization of Unicode strings

2013-04-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've applied the review comments and committed the patch. Thank you! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15596] pickle: Faster serialization of Unicode strings

2013-04-07 Thread STINNER Victor
STINNER Victor added the comment: Hi Antoine, I prefer your patch. Great job! 2013/4/7 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou added the comment: I've applied the review comments and committed the patch. Thank you! -- resolution: - fixed stage: patch review -

[issue15596] pickle: Faster serialization of Unicode strings

2013-04-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Since protocol 0 is essentially dead in Python 3, I would like to propose something simpler and safer: only optimize the binary protocols. If noone beats me to it, I'll adapt Victor's patch for that. -- ___ Python

[issue15596] pickle: Faster serialization of Unicode strings

2013-04-06 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15596 ___ ___ Python-bugs-list

[issue15596] pickle: Faster serialization of Unicode strings

2013-04-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ping? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15596 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15596] pickle: Faster serialization of Unicode strings

2013-01-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, I take care of this. I have the own patch for raw_unicode_escape() optimization, but microbenchmarks don't show any speed up. Maybe your approach will be better. -- ___ Python tracker rep...@bugs.python.org

[issue15596] pickle: Faster serialization of Unicode strings

2013-01-02 Thread STINNER Victor
STINNER Victor added the comment: serhiy: I'm not really motivated to finish the work on this issue (especially ... it would probably be good idea to benchmarks non-ASCII strings as well.). Would you like to work on this? -- nosy: +serhiy.storchaka

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-10 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15596 ___ ___ Python-bugs-list mailing list

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks interesting. Can you post benchmark numbers? (you can use the pickle tests from http://hg.python.org/benchmarks ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15596

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Here is a benchmark comparing Python 3.3 without and with my patch ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../default/python ../fasterpickle/python Running fastpickle... INFO:root:Running ../fasterpickle/python

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: For your information, results of benchmark comparing Python 3.2 to 3.3: ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../3.2/python ../default/python Running fastpickle... INFO:root:Running ../default/python performance/bm_pickle.py -n

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread Alexandre Vassalotti
Alexandre Vassalotti added the comment: Amazing! Though, it would probably be good idea to benchmarks non-ASCII strings as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15596 ___

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-09 Thread STINNER Victor
STINNER Victor added the comment: Last one: Python 3.2 vs patched Python 3.3. ned$ python3 perf.py -b fastpickle,pickle_dict,pickle_list,slowpickle ../3.2/python ../fasterpickle/python Running fastpickle... INFO:root:Running ../fasterpickle/python performance/bm_pickle.py -n 50 --use_cpickle

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-08 Thread STINNER Victor
New submission from STINNER Victor: Serialization of Unicode strings in the pickle module is suboptimal, especially for long strings. Attached patch optimize the serialization thanks to new properties of Unicode strings (PEP 393): * text (protocol 0): avoid any temporary buffer if the

[issue15596] pickle: Faster serialization of Unicode strings

2012-08-08 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to explain that I initially wrote the patch to fix the following failure on our bigmem buildbot. http://buildbot.python.org/all/builders/AMD64%20Ubuntu%20LTS%20bigmem%203.x/builds/165/steps/test/logs/stdio