[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-03-29 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-02-01 Thread Ken Jin
Ken Jin added the comment: New changeset b9ebde8db7e176e021103745cd012bae700828b5 by Kumar Aditya in branch 'main': bpo-46564: do not create frame object for super object (GH-31002) https://github.com/python/cpython/commit/b9ebde8db7e176e021103745cd012bae700828b5 -- ___

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Ken Jin
Ken Jin added the comment: > Oh, I didn't see your PR and commented as it was not mentioned in this bpo. No problem. In the future please check the "Pull Requests" section on the issue. People don't always say "I created a PR at xxx". Often times we just link the PR into the issue itself. K

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Kumar Aditya
Kumar Aditya added the comment: Oh, I didn't see your PR and commented as it was not mentioned in this bpo. Would you like to split the PR or continue with yours, either way is fine? -- ___ Python tracker _

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Ken Jin
Ken Jin added the comment: @Kumar, my PR already has your changes. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Kumar Aditya
Change by Kumar Aditya : -- pull_requests: +29184 pull_request: https://github.com/python/cpython/pull/31002 ___ Python tracker ___

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Kumar Aditya
Kumar Aditya added the comment: I was reading typeobject.c and noticed that creating a super object currently requires creating a frame object which is created lazily and is slow and it would work with the InterpreterFrame as well so I created a PR for this optimization and now it does not r

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Ken Jin
Change by Ken Jin : -- keywords: +patch pull_requests: +29172 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30992 ___ Python tracker ___

[issue46564] Near zero-cost super().meth() calls via adaptive superinstructions

2022-01-28 Thread Ken Jin
New submission from Ken Jin : `super().meth()` is expensive. I propose to optimize 3 parts of this: 1. Avoid creating a temporary super() proxy object. 2. Avoid creating a bound method. 3. Avoid method lookup in super MRO using the inline cache. Credit for 1. and 2. doesn't belong to me. Those