➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 yselivanov
收信人 benjamin.peterson, brett.cannon, dino.viehland, gvanrossum, ncoghlan, twouters, vstinner, yselivanov
日期 2016-01-14.21:12:39
SpamBayes Score -1.0
Marked as misclassified 是
Message-id <1452805959.47.0.122048008582.issue26110@psf.upfronthosting.co.za>
In-reply-to
内容
> I like this idea! I like the limitations to positional-only calls. I do think that it would be nice if we could speed up C calls too -- today, s.startswith('abc') is slower than s[:3] == 'abc' precisely because of the lookup. But I'm all for doing this one step at a time, so we can be sure it is solid before taking the next step(s).

Yes, I think we can make `<built-in type>.method(..)` calls much faster with LOAD_METHOD.  Since those types lack `__dict__` and their `__class__` is read-only, we can use a far better optimized code path without extra lookups and creation of BoundMethod/PyCFunction objects.
历史
日期 用户 动作 参数
2016-01-14 21:12:39yselivanov修改recipients: + yselivanov, gvanrossum, twouters, brett.cannon, ncoghlan, vstinner, benjamin.peterson, dino.viehland
2016-01-14 21:12:39yselivanov修改messageid: <1452805959.47.0.122048008582.issue26110@psf.upfronthosting.co.za>
2016-01-14 21:12:39yselivanov链接issue26110 messages
2016-01-14 21:12:39yselivanov创建