[issue27574] Faster parsing keyword arguments

2016-12-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: -> resolved status: open -> closed Added file: http://bugs.python.org/file45947/faster_keyword_args_parse_alt2.patch ___ Python tracker

[issue27574] Faster parsing keyword arguments

2016-12-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just for the history, there are two alternative patches. They unpack keyword arguments to linear array. I expected this approach can add more optimization, but actually the benefit is too small or negative. -- Added file: http://bugs.python.org/file4

[issue27574] Faster parsing keyword arguments

2016-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, I came to conclusion than needed to push existing issues for separate files. I'm sure there are ready patches waiting for review. Now there is additional reason for converting to Argument Clinic. But some files contain only one PyArg_ParseTupleAndKeywor

[issue27574] Faster parsing keyword arguments

2016-08-17 Thread Brett Cannon
Brett Cannon added the comment: I think for converting uses to Argument Clinic it can be done in a more iterative process on a per-module basis. How many modules do we have left to convert? If it isn't ridiculously huge we could open individual issues to convert them each. -- ___

[issue27574] Faster parsing keyword arguments

2016-08-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I left this issue open for three reasons. 1. I had ideas and almost finished patch for different optimization. Unfortunately my hope was not justified, new implementation is slower. If I fail to fix it in few days, I'll close the issue. 2. For bikeshedding

[issue27574] Faster parsing keyword arguments

2016-08-17 Thread STINNER Victor
STINNER Victor added the comment: The issue can now be closed no? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue27574] Faster parsing keyword arguments

2016-08-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset e527715bd0b3 by Serhiy Storchaka in branch 'default': Issue #27574: Decreased an overhead of parsing keyword arguments in functions https://hg.python.org/cpython/rev/e527715bd0b3 -- nosy: +python-dev ___

[issue27574] Faster parsing keyword arguments

2016-08-11 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue27574] Faster parsing keyword arguments

2016-08-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Normally, LGTM is an almost useless comment, but the patch does in fact look good to me. I like how compact and straight-forward the changes are to the individual parsing calls. -- nosy: +rhettinger ___ Python t

[issue27574] Faster parsing keyword arguments

2016-08-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed, in issue17170 this issue was discussed first. -- ___ Python tracker ___ ___ Python-bugs-li

[issue27574] Faster parsing keyword arguments

2016-08-08 Thread STINNER Victor
STINNER Victor added the comment: See also the old issue #17170 "string method lookup is too slow". -- nosy: +haypo ___ Python tracker ___ ___

[issue27574] Faster parsing keyword arguments

2016-08-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch addresses Antoine's comments. All checks of format string are moved into parser_init. I experimented with Antoine's idea about making vgetargskeywords a simple wrapper around vgetargskeywordsfast with one-shot parser, but this slows down parsi

[issue27574] Faster parsing keyword arguments

2016-08-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue27574] Faster parsing keyword arguments

2016-08-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue27574] Faster parsing keyword arguments

2016-07-20 Thread Brett Cannon
Brett Cannon added the comment: I haven't reviewed the patch, but the idea is great as I know one of Larry's hopes of using Argument Clinic was to allow for this kind of speed-up. -- nosy: +brett.cannon, larry ___ Python tracker

[issue27574] Faster parsing keyword arguments

2016-07-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Parsing keyword arguments is much more slow than parsing positional arguments. Parsing time can be larger that useful execution time. $ ./python -m timeit "b'a:b:c'.split(b':', 1)" 100 loops, best of 3: 0.638 usec per loop $ ./python -m timeit "b'a:b:c'