Message258205
> 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/ |
|
Date |
User |
Action |
Args |
2016-01-14 17:44:01 | vstinner | set | recipients:
+ vstinner, gvanrossum, brett.cannon, ncoghlan, benjamin.peterson, yselivanov |
2016-01-14 17:44:01 | vstinner | set | messageid: <1452793441.57.0.711689033458.issue26110@psf.upfronthosting.co.za> |
2016-01-14 17:44:01 | vstinner | link | issue26110 messages |
2016-01-14 17:44:01 | vstinner | create | |
|