Skip to content
Tcl Source Code Artifact [3d82543833]
Login

Artifact [3d82543833]

Artifact 3d82543833b438532617e3315f3936c0d1201e66:

Ticket change [3d82543833] - Ticket [231523ffffffffff|231523ffff] <i>[split $longString &quot;&quot;] uses far too much memory</i> status still Open with 4 other changes by dkf on 2001-02-09 18:12:24.
D 2001-02-09T18:12:24
J icomment My\sgoodness!\s\sFurther\stesting\sindicates\sthis\sis\sa\sspeedup\seven\sfor\sshorter\sstrings.\s\sFirst,\sfor\scomparison\sthe\stclsh8.3\sversion\swhich\sused\sthe\sold\salgorithm\sI\sbelieve:\n\s\s$\stclsh8.3\n\s\s%\sset\ss\s"This\sis\sa\slong\sstring\sto\stype\sbut\sa\sshort\sstring\sto\ssplit."\n\s\sThis\sis\sa\slong\sstring\sto\stype\sbut\sa\sshort\sstring\sto\ssplit.\n\s\s%\stime\s{split\s$s\s{}}\s10000\n\s\s229\smicroseconds\sper\siteration\nNow\sthe\snew\sversion\susing\smy\schanged\scode:\n\s\s$\s/tmp/bin/tclsh8.4\s\n\s\s%\sset\ss\s"This\sis\sa\slong\sstring\sto\stype\sbut\sa\sshort\sstring\sto\ssplit."\n\s\sThis\sis\sa\slong\sstring\sto\stype\sbut\sa\sshort\sstring\sto\ssplit.\n\s\s%\stime\s{split\s$s\s{}}\s10000\n\s\s181\smicroseconds\sper\siteration\n\n
J login dkf
J mimetype text/plain
J username dkf
K 231523ffffffffffffffffffffffffffffffffff
U dkf
Z 60c684527d54b004950a9f5e77e53a14