Skip to content
Tcl Source Code History Of Ticket 1165671fffffffffffffffffffffffffffffffff
Login

History Of Ticket 1165671fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1165671fffffffffffffffffffffffffffffffff

  1. Ticket change [a6c5990a8c] (rid 98664) by dgp on 2005-03-17 23:42:19:

    1. assignee initialized to: "msofer"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      During the CONST reforms leading up
      to Tcl 8.4 that allowed const strings
      to be passed to Tcl_Eval(), etc...
      a call to TclLooksLikeInt() was replaced
      by TclParseInteger() in the
      TclCompileIncrCmd() routine.
      
      TclLooksLikeInt() allows for leading
      whitespce and + and -, while TclParseInteger()
      does not.  So the test doesn't pass as
      often as it used to, or as it should.
      When the test passes, immediate
      operands are compiled into the
      bytecode allowing for more efficient
      execution.
      
      As it happems, TclLooksLikeInt()
      is happy and safe to use with const
      strings.  The attached patch restores
      it, which allows increments containing
      whitespace and leading sign characters
      to be compiled to more efficient bytecode.
      The most notable case is probably
      [incr x -1].  Will be interesting to see if
      this change shows up in any benchmarks.
      
    4. foundin initialized to: "obsolete: 8.4.9"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "dgp"
    9. subsystem initialized to: "47. Bytecode Compiler"
    10. title initialized to: "inefficient bytecode for [incr x -1]"
    11. type initialized to: "Bug"
  2. Add attachment "immincr.patch" [7519fab383] (rid 105334) by dgp on 2005-03-18 06:42:20.

  3. Ticket change [48c6c015d4] (rid 99953) by dgp on 2005-03-18 06:42:21:

    1. icomment:
      
      
      File Added - 126170: immincr.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  4. Ticket change [0665873aa8] (rid 89220) by dgp on 2005-03-18 22:32:32:

    1. status changed to: "Closed"
  5. Ticket change [22ef5d6967] (rid 130840) by dgp on 2005-03-18 22:32:33:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2005-03-18T15:32:33"
    3. closer changed to: "dgp"
    4. icomment:
      Logged In: YES 
      user_id=80530
      
      
      fix committed for 8.4.10 and 8.5a3
      
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Fixed"
    8. username: "dgp"