|
2007-10-19
| ||
| 04:16 | • Closed ticket [1794073fff]: return -level 0 improve bytecode plus 7 other ... artifact: 9767674797 user: dgp | |
|
2007-09-13
| ||
| 18:06 | • New ticket [1794073fff]. artifact: b7f751d3c2 user: dgp | |
[return -level 0] improve bytecode
Closed / Fixed1794073fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-09-13 18:06:58
kbkconcat slightly faster than subst - both significantly faster than either format or return -level 0 dgpas aliases, or directly? kbkas aliases. tclguyis that because return -level 0 won't be bytecoded? tclguyand if so, can't that be easily corrected? dgpok, I expect non-aliased [concat] to be the winner then dgp[return -level 0] is bytecoded, but not as a special case, I think tclguyis concat bytecoded? tclguybecause return is just a push ... dgpLikely that some more checking in TclCompileReturnCmd could turn it into INST_CONCAT dgpspecial cases of return is just a push dgpbut [return -level 0] wouldn't qualify dgp"just a push" == INST_DONE kbktclguy - ISTR that concat of a single arg is just a push. dgpthe INST_CONCAT optimization sounds good though. * rmax cd ~ dgp"just a push" not quite accurate. dgpthe command argument would already be pushed dgpmore like "just convert TOS to the command result" dgpanyhow, some good ideas here I can't immediately implement, recoding in Tracker...
dgpplain2007-10-19 04:16:24
Logged In: YES user_id=80530 Originator: YES Improvement committed for 8.5b2
Log in (anonymous is fine) to add a comment.