Skip to content
Tcl Source Code Artifact [da47e8ed74]
Login

Artifact [da47e8ed74]

Artifact da47e8ed742083c3e7f734402e3af1fdcf02afa8:

Ticket change [da47e8ed74] - Closed ticket [1465666fffffffff|1465666fff]: <i>8.5 lists sometimes uses more memory for 8.4..</i> plus 7 other changes by kennykb on 2007-01-03 22:49:39.
D 2007-01-03T22:49:39
J closedate 2007-01-03T15:49:39
J closer kennykb
J icomment Logged\sIn:\sYES\s\nuser_id=99768\nOriginator:\sNO\n\nIt\sis\sindeed\strue\sthat\sTcl_GetDoubleFromObj\sis\sslower\son\sWindows\sin\s8.5\sthan\sit\swas\sin\s8.4\s-\sbut\sshould\sbe\sslower\sonly\swhen\sit\sactually\shas\sto\sshimmer\sa\sstring.\n\nIt\sis\salso\strue\sthat\sthe\sold\sTcl_GetDoubleFromObj\sfails\sdozens,\sif\snot\shundreds,\sof\sthe\sroundoff\stests\sin\sexpr-28.*.\s\sTo\ssome\sextent,\swe\sappear\sto\sbe\sfacing\sa\schoice\sbetween\s"fast"\sand\s"correct."\n\nSince\sthe\smemory\smanagement\sappears\sto\sbe\sexonerated,\sand\ssince\sthe\sperformance\schange\sappears\sto\sbe\ssomething\sthat\swe've\saccepted\sfor\sthe\smoment,\sI'm\sclosing\sout\sthis\sissue.\n\nA\snote\sto\sthe\soriginal\ssubmitter.\s\sRather\sthat\susing\s"$i."\sto\sconvert\san\sinteger\sto\sfloating\spoint,\sit's\sboth\sfaster\sand\ssafer\sto\suse\s[expr\s{double($i)}]\s--\sand\snote\sthe\scurly\sbraces.\s\sThat\swon't\strouble\sto\sgenerate\sa\sstring\srepresentation\sof\sthe\s'double'\suntil\sit's\sneeded,\sand\swill\sdo\sthe\sinteger-to-double\sconversion\swithout\sgoing\sthrough\san\sintermediate\sstring\srepresentation.\s\sIn\smost\sof\syour\sexamples,\sit\swill\ssave\sboth\sspace\sand\stime.\n
J login kennykb
J mimetype text/plain
J resolution None
J status Closed
J username kennykb
K 1465666fffffffffffffffffffffffffffffffff
U kennykb
Z 60e8d7e6346c46352b1d3fc9aee45237