Skip to content
Tcl Source Code History Of Ticket 472576ffffffffffffffffffffffffffffffffff
Login

History Of Ticket 472576ffffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 472576ffffffffffffffffffffffffffffffffff

  1. Ticket change [6b7e65cf98] (rid 128338) by kennykb on 2001-10-18 21:50:33:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
    4. foundin initialized to: "obsolete: 8.4a4"
    5. priority initialized to: "1 Zero"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "kennykb"
    9. subsystem initialized to: "10. Objects"
    10. title initialized to: "Tcl_GetBooleanFromObject performance"
    11. type initialized to: "Bug"
  2. Ticket change [91d347ec65] (rid 120683) by msofer on 2002-08-08 00:12:39:

    1. closedate changed to: "2002-08-07T17:12:39"
    2. closer changed to: "msofer"
    3. resolution changed to: "Fixed"
    4. status changed to: "Closed"