Skip to content
Tcl Source Code Artifact [a7a268ba01]
Login

Artifact [a7a268ba01]

Artifact a7a268ba010024d1665d0d2b814b1a4ea6212a016ac6d2c1aeaed14c5ce6dd85:

Ticket change [a7a268ba01] - Ticket [e02798626dfbcd7b|e02798626d] <i>clock command is 8 times slower with Tcl 9.0b1</i> status still Pending with 3 other changes by sebres on 2024-02-27 16:44:41.
D 2024-02-27T16:44:41.999
J icomment As\sfor\s<code>string\sequal\s-length</code>\s(vs\s<code>regexp</code>),\sit\swould\sbe\smany\stimes\sslower,\sbecause\s<code>string\sequal\s-length</code>\s(with\soption)\sdidn't\scompile\sin\sTEBC\s(including\severything\sbelonging:\sreenter\sto\sTEBCResume,\sNRE-trampoline,\setc),\swhereas\s<code>regexp</code>\sis\scompletely\scompiled\sin\sTEBC.<br/>\r\n(Let\salone\sstring\sequal\swith\slength\swould\sprobably\sshimmer\sthe\sstring\sto\sunicode,\swhat\swould\sintroduce\sadditional\scost)\r\n\r\nYou\scan\stry\sit\sby\syourself\s(I\sguess\sslowing\sdown\sby\sfactor\s10):\r\n<pre><code>timerate\s-calibrate\s{}\r\nproc\stest\s{ns}\s{\stimerate\s{\sregexp\s--\s{^::oo::}\s$ns\s}\s};\stest\s::tcl::clock\r\nproc\stest\s{ns}\s{\stimerate\s{\sstring\sequal\s-length\s6\s{::oo::}\s$ns\s}\s};\stest\s::tcl::clock\r\nproc\stest\s{ns}\s{\stimerate\s{\sregexp\s--\s{^::oo::}\s$ns\s}\s};\stest\s::oo::test\r\nproc\stest\s{ns}\s{\stimerate\s{\sstring\sequal\s-length\s6\s{::oo::}\s$ns\s}\s};\stest\s::oo::test\r\n</code></pre>
J login sebres
J mimetype text/x-fossil-wiki
K e02798626dfbcd7b33db19e0fc3a9fb9fa0714f4
U sebres
Z 1aa1387453099d996ae4ba35d1bc3b27