Artifacts Associated With Ticket 1165671fffffffffffffffffffffffffffffffff
Ticket change [a6c5990a8c] (rid 98664) by dgp on 2005-03-17 23:42:19:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- 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.
- foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "47. Bytecode Compiler"
- title initialized to: "inefficient bytecode for [incr x -1]"
- type initialized to: "Bug"
Add attachment "immincr.patch" [7519fab383] (rid 105334) by dgp on 2005-03-18 06:42:20.
Ticket change [48c6c015d4] (rid 99953) by dgp on 2005-03-18 06:42:21:
- icomment:
File Added - 126170: immincr.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [0665873aa8] (rid 89220) by dgp on 2005-03-18 22:32:32:
- status changed to: "Closed"
Ticket change [22ef5d6967] (rid 130840) by dgp on 2005-03-18 22:32:33:
- assignee changed to: "dgp"
- closedate changed to: "2005-03-18T15:32:33"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 fix committed for 8.4.10 and 8.5a3
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- username: "dgp"