[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-29 Thread STINNER Victor
STINNER Victor added the comment: INADA Naoki: The ASCII and latin1 encoders are now up to 3 times as fast when the surrogateescape error handler is used in Python 3.6. -- nosy: +naoki, serhiy.storchaka resolution: -> fixed status: open -> closed __

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 128a3f03ddeb by Victor Stinner in branch 'default': Optimize ascii/latin1+surrogateescape encoders https://hg.python.org/cpython/rev/128a3f03ddeb -- ___ Python tracker

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-24 Thread STINNER Victor
STINNER Victor added the comment: Result of a micro-benchmark with encode_ucs1_surrogateescape-2.patch. Common platform: Timer info: namespace(adjustable=False, implementation='clock_gettime(CLOCK_MONOTONIC)', monotonic=True, resolution=1e-09) Timer: time.perf_counter CPU model: Intel(R) Core(

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-24 Thread STINNER Victor
STINNER Victor added the comment: Updated test now with more unit tests. -- Added file: http://bugs.python.org/file40563/encode_ucs1_surrogateescape-2.patch ___ Python tracker __

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-24 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file40562/encode_ucs1_surrogateescape.patch ___ Python tracker ___

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa65c32d7134 by Victor Stinner in branch 'default': Issue #25227: Cleanup unicode_encode_ucs1() error handler https://hg.python.org/cpython/rev/fa65c32d7134 -- nosy: +python-dev ___ Python tracker

[issue25227] Optimize ASCII/latin1 encoder with surrogateescape error handlers

2015-09-24 Thread STINNER Victor
New submission from STINNER Victor: Attached patch is based on faster_surrogates_hadling.patch written by Serhiy Storchaka for the issue #24870. It optimizes str.encode('ascii', 'surrogateescape') and str.encode('ascii', 'latin1'). -- messages: 251516 nosy: haypo priority: normal sever