Artifacts Associated With Ticket 472576ffffffffffffffffffffffffffffffffff
Ticket change [6b7e65cf98] (rid 128338) by kennykb on 2001-10-18 21:50:33:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Tcl_GetBooleanFromObj (and SetBooleanFromAny) have the anomaly that they don't check for an object that is already of the correct type: instead, they reparse strings on each trip through. Moreover, they could be sped up still further by having Tcl_GetBooleanFromObj recognize at least tclIntType and tclLongType, and doing the obvious int-to-Boolean conversion. Code that shows the performance anomaly: % time { set i 100000 ; while { true && [incr i -1] > 0 } {} } 392272 microseconds per iteration % time { set i 100000 ; while { 1 && [incr i -1] > 0 } {} } 293493 microseconds per iteration - foundin initialized to: "obsolete: 8.4a4"
- priority initialized to: "1 Zero"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "kennykb"
- subsystem initialized to: "10. Objects"
- title initialized to: "Tcl_GetBooleanFromObject performance"
- type initialized to: "Bug"
Ticket change [91d347ec65] (rid 120683) by msofer on 2002-08-08 00:12:39:
- closedate changed to: "2002-08-07T17:12:39"
- closer changed to: "msofer"
- resolution changed to: "Fixed"
- status changed to: "Closed"