[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Dong-hee Na
Change by Dong-hee Na : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Dong-hee Na
Dong-hee Na added the comment: Just for the record, https://github.com/python/cpython/pull/19677#discussion_r413894982 guido left an opinion that the caching approach might be more proper. So I 'd like to suggest open a new issue for caching. :) --

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Dong-hee Na
Dong-hee Na added the comment: > And how much faster has your example become? For function declaration, 5% enhancement, the function call does not show difference because the GenericAlias is not big portion on calling.

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And how much faster has your example become? -- ___ Python tracker ___ ___ Python-bugs-list

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Dong-hee Na
Dong-hee Na added the comment: > Do you have any realistic example which would benefit from speeding up the > creation of GenericAlias instances? Hmm I did not find loop tightly calling case, but for example, this kinds of usage are very often. def create_q(l: list[int]) -> Queue[int]: q

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +19000 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19677 ___ Python tracker ___

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have doubts that GenericAlias instances are created in mass in tight loops. Do you have any realistic example which would benefit from speeding up creation of GenericAlias instances? -- nosy: +serhiy.storchaka

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread Dong-hee Na
Dong-hee Na added the comment: > Can you propose a PR, so I can have a look at the implementation? Got it :), I will upload it soon. -- ___ Python tracker ___

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-23 Thread STINNER Victor
STINNER Victor added the comment: > if the suggestion is accepted, I 'd like to summit the patch :) Can you propose a PR, so I can have a look at the implementation? -- ___ Python tracker

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-22 Thread Dong-hee Na
Change by Dong-hee Na : -- assignee: -> corona10 type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40369] Use PEP 590 vectorcall to speed up GenericAlias.

2020-04-22 Thread Dong-hee Na
New submission from Dong-hee Na : Since PEP 560 was approved, The following syntax has become available. from queue import Queue v = Queue[int] It's a very shiny feature. Given the direction of programming language, it's probably a very useful feature that users will use very often in the