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.

Author vstinner
Recipients benjamin.peterson, brett.cannon, gvanrossum, ncoghlan, vstinner, yselivanov
Date 2016-01-14.17:44:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1452793441.57.0.711689033458.issue26110@psf.upfronthosting.co.za>
In-reply-to
Content
> For keyword and var-arg calls we have three more opcodes -- CALL_FUNCTION_VAR, CALL_FUNCTION_KW, and CALL_FUNCTION_VAR_KW.  I suspect that making them work with LOAD_METHOD would slow them down too, which will probably require us to add three (!) more opcodes for LOAD_METHOD.

I don't think that it's an issue to add 3 more opcodes for performance. If you prefer to limit the number of opcodes, you can pass a flag in arguments. For example, use 2 bytes for 2 arguments instead of only 1?

See also the (now old) WPython project which proposed kind of CISC instructions:
https://code.google.com/p/wpython/
History
Date User Action Args
2016-01-14 17:44:01vstinnersetrecipients: + vstinner, gvanrossum, brett.cannon, ncoghlan, benjamin.peterson, yselivanov
2016-01-14 17:44:01vstinnersetmessageid: <1452793441.57.0.711689033458.issue26110@psf.upfronthosting.co.za>
2016-01-14 17:44:01vstinnerlinkissue26110 messages
2016-01-14 17:44:01vstinnercreate