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...
|