Artifacts Associated With Ticket 1037357
Ticket change [e8742c36c2] (rid 104645) by dkf on 2004-09-29 22:59:22:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
This patch speeds up [uplevel] and [upvar] by caching the result of parsing the string form of the level indicator in the Tcl_Obj argument instead of always working with the string form for everything.
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "dkf"
- subsystem initialized to: "22. [proc] and [uplevel]"
- title initialized to: "Speedup for [uplevel] and [upvar]"
- type initialized to: "Patch"
Ticket change [ba1ee90618] (rid 129264) by dkf on 2004-09-30 05:59:22:
- icomment:
File Added - 103249: objup.diff
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [876e02b37a] (rid 131695) by dgp on 2004-09-30 06:42:13:
- icomment:
File Added - 103256: 1037357.patch Logged In: YES user_id=80530 corrected patch applies and compiles.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [271af7a7ab] (rid 88458) by dgp on 2004-09-30 06:47:46:
- icomment:
Logged In: YES user_id=80530 The comments in Tcl*GetFrame say "modify the interpreter", but neither routine actually does that.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [088f470f35] (rid 89583) by dgp on 2004-09-30 07:15:49:
- icomment:
File Deleted - 103256: File Added - 103261: 1037357.patch Logged In: YES user_id=80530 updated patch takes care of comments and allows `make genstubs` to succeed.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1037357.patch" [d26de26fe0] (rid 113529) by dgp on 2004-09-30 07:15:49.
Ticket change [7de455a061] (rid 97305) by dgp on 2004-09-30 08:10:58:
- icomment:
Logged In: YES user_id=80530 something about the patch breaks tcltest: dict.test Test file error: can't rename "::tcltest::Replace::Puts": command doesn't exist while executing "rename [namespace current]::Replace::Puts ::puts" (procedure "::tcltest::Eval" line 16) invoked from within "::tcltest::Eval {::tcltest::RunTest dict-18.2 {# Test that the dictionary is a valid list set d [dict create "abc def" 0 "a\{b" 1 "c\}d" 2] ..." ("uplevel" body line 1) invoked from within "uplevel 1 [list [namespace origin Eval] $command 1]" (procedure "test" line 126) invoked from within "test dict-18.2 {dict-list relationship} { -body { # Test that the dictionary is a valid list set d [dict create "abc def" 0 "a\{b"..." (file "/local/src/tcl/tests/dict.test" line 726) - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [2c7109f29b] (rid 118905) by dgp on 2004-09-30 08:48:33:
- icomment:
Logged In: YES user_id=80530 Root of the problem appears to be line 1965 of tcltest.tcl where the literal "1" appears twice. First as the "level" argument to [uplevel] and second as an argument in the command to be evaluated up a level. Something isn't shimmering right, I'd suspect. As a check, if I remove the second "1" from that line (and accept the default value of that argument, which is 1), then the problem goes away.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [23b95e5a8c] (rid 130984) by dgp on 2004-09-30 09:31:12:
- icomment:
Logged In: YES user_id=80530 This patch should be checked against tclbench. I suspect that whatever is being saved by repeated use of $level by multiple [uplevel]s and [upvar]s is more than being lost by the greatly increased shimmering of the literal constant "1" in so many logical expressions. `make test` sure feels a lot slower anyway.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [dc3b84ab8c] (rid 108103) by dkf on 2004-09-30 15:13:51:
- icomment:
Logged In: YES user_id=79902 Thanks for the review; I'll have to write a new version that is aware of numeric types and avoids the conversion in those situations. I suspected I needed to do this anyway ;^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [56b314d864] (rid 94366) by dkf on 2004-09-30 22:36:51:
- icomment:
Logged In: YES user_id=79902 Here's a version that shouldn't have problems with shimmering all over the place. Causes no new test failures. No idea (formally) what happens in tclbench, but looks good in informal trials. ;^)
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Add attachment "1037357_2.patch" [a9bfa3c649] (rid 99205) by dkf on 2004-09-30 22:36:52.
Ticket change [d22b34e9d3] (rid 113483) by dkf on 2004-09-30 22:36:52:
- icomment:
File Added - 103339: 1037357_2.patch
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [3e937ec84b] (rid 121296) by dkf on 2004-09-30 22:37:12:
- icomment:
File Deleted - 103249:
- login: "dkf"
- mimetype: "text/plain"
- username: "dkf"
- icomment:
Ticket change [65091c636e] (rid 92875) by dgp on 2004-09-30 22:52:03:
- icomment:
Logged In: YES user_id=80530 revised patch tests ok.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [e5a641acad] (rid 104158) by dkf on 2004-10-01 19:46:02:
- assignee changed to: "dkf"
- closedate changed to: "2004-10-01T12:46:02"
- closer changed to: "dkf"
- icomment:
Logged In: YES user_id=79902 Applied to HEAD
- login: "dkf"
- mimetype: "text/plain"
- resolution changed to: "Accepted"
- status changed to: "Closed"
- username: "dkf"