Skip to content
Tcl Source Code Artifact [6b5bd41b54]
Login

Artifact [6b5bd41b54]

Artifact 6b5bd41b54e09f28f7079de921d3225cf09b877a:

Ticket change [6b5bd41b54] - Ticket [644819ffffffffff|644819ffff] <i>Bytecompiled [switch] Command</i> status still Open with 4 other changes by dkf on 2002-11-28 21:57:27.
D 2002-11-28T21:57:27
J icomment \n\nFile\sDeleted\s-\s36315:\s\n\n\n\nFile\sAdded\s-\s36392:\scompiled_switch.patch\n\nLogged\sIn:\sYES\s\nuser_id=79902\n\nApart\sfrom\sthe\spoints\sJeff\sraises\s(and\swhich\sshould\sbe\naddressed\sby\sthe\snew\spatch\sbelow),\sthere\swere\sa\sgreat\snumber\nof\sproblems\s(relocation\sfixups\sand\smax\sstack\sdepths\swere\nboth\sbroken!)\n\n(BTW,\sINST_STR_MATCH\swasn't\sa\sstraight\sslot-in\sreplacement\nfor\sINST_STR_EQ\sbecause\sit\smatters\swhich\sargument\sis\swhich.\s\nINST_OVER\sis\sour\ssavour!)\n\nPerformance\swise\son\sa\s700MHz\sP3\sLinux\sbox:\n%\sproc\sfoo\ss\s{\n\s\s\s\sset\sx\s0;\sset\sy\s0\n\s\s\s\sforeach\sc\s[split\s$s\s{}]\s{\n\s\s\s\s\s\s\s\sswitch\s-exact\s--\s$c\s{\n\s\s\s\s\s\s\s\s\s\s\s\sa\s{incr\sx}\n\s\s\s\s\s\s\s\s\s\s\s\sb\s{incr\sy}\n\s\s\s\s\s\s\s\s}\n\s\s\s\s}\n\s\s\s\sreturn\s$x,$y\n}\n%\sproc\sbar\ss\s{\n\s\s\s\sset\sx\s0;\sset\sy\s0\n\s\s\s\sforeach\sc\s[split\s$s\s{}]\s{\n\s\s\s\s\s\s\s\sswitch\s-exact\s--\s$c\sa\s{incr\sx}\sb\s{incr\sy}\n\s\s\s\s}\n\s\s\s\sreturn\s$x,$y\n}\n%\stime\s{foo\nshdgsdbcbcsjdsbvbsdjfvbsdbvsldfgsdfsvbsdhfbvlsdvsdbvldvxnvascv}\n1000\n275\smicroseconds\sper\siteration\n%\stime\s{bar\nshdgsdbcbcsjdsbvbsdjfvbsdbvsldfgsdfsvbsdhfbvlsdvsdbvldvxnvascv}\n1000\n328\smicroseconds\sper\siteration\n\n
J login dkf
J mimetype text/plain
J username dkf
K 644819ffffffffffffffffffffffffffffffffff
U dkf
Z 4ad63a0b91a76a73a94b04ea81b1f07b