Artifacts Associated With Ticket 1626518fffffffffffffffffffffffffffffffff
Ticket change [b7f8555d2a] (rid 128885) by pcmacdon on 2007-01-02 23:03:05:
- assignee initialized to: "hobbs"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Not really a bug, but it seems that remote interp alias invocation has gotten a lot slower. Like 10 times. Here is the output from attached reproducable script. TCL='8.3.4' PROC : 2 microseconds per iteration LOCALALIAS: 3 microseconds per iteration SUBINTERP : 4 microseconds per iteration TCL='8.4.13' PROC : 1.455 microseconds per iteration LOCALALIAS: 2.062 microseconds per iteration SUBINTERP : 2.376 microseconds per iteration TCL='8.5a3' PROC : 2.251 microseconds per iteration LOCALALIAS: 3.678 microseconds per iteration SUBINTERP : 19.705 microseconds per iteration TCL='8.5a5' PROC : 2.128 microseconds per iteration LOCALALIAS: 3.045 microseconds per iteration SUBINTERP : 22.788 microseconds per iteration This last is on Linux and configured with: ./configure --enable-symbols --disable-shared
- foundin initialized to: "obsolete: 8.5a5"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "pcmacdon"
- subsystem initialized to: "20. [interp]"
- title initialized to: "remote alias invocation 10x slowdown"
- type initialized to: "Bug"
Ticket change [762e07552b] (rid 105531) by pcmacdon on 2007-01-03 06:03:06:
- icomment:
File Added - 209385: interp.tcl
- login: "pcmacdon"
- mimetype: "text/plain"
- username: "pcmacdon"
- icomment:
Add attachment "interp.tcl" [c62a2778e4] (rid 121720) by pcmacdon on 2007-01-03 06:03:06.
Ticket change [db47cef590] (rid 107929) by pcmacdon on 2007-01-03 11:17:32:
- icomment:
Logged In: YES user_id=190660 Originator: YES I ran gprof profiling and tracked the slowdown to TclTransferResult(), in particular near the end, there was a change: < (Interp *) targetInterp)->returnCode = ((Interp *) sourceInterp)->returnCode; --- > Tcl_SetReturnOptions(targetInterp, Tcl_GetReturnOptions(sourceInterp, result)); Setting this back restores performance??? - login: "pcmacdon"
- mimetype: "text/plain"
- username: "pcmacdon"
- icomment:
Ticket change [769a54e1fc] (rid 105617) by pcmacdon on 2007-01-03 12:02:48:
- icomment:
Logged In: YES user_id=190660 Originator: YES Ah. It looks like this involves the [return] enhancements. I wonder if something like the following might be feasible, as it restores performance: if (result == TCL_OK && iPtr->returnOpts==NULL) { ((Interp *) targetInterp)->returnCode = ((Interp *) sourceInterp)->returnCode; } else { Tcl_SetReturnOptions(targetInterp, Tcl_GetReturnOptions(sourceInterp, result)); iPtr->flags &= ~(ERR_ALREADY_LOGGED); } - login: "pcmacdon"
- mimetype: "text/plain"
- username: "pcmacdon"
- icomment:
Ticket change [2f6030c216] (rid 93053) by hobbs on 2007-01-03 15:04:53:
- assignee changed to: "dgp"
- icomment:
Logged In: YES user_id=72656 Originator: NO Don did the return additions, so I'll let him comment.
- login: "hobbs"
- mimetype: "text/plain"
- priority changed to: "6"
- username: "hobbs"
Ticket change [e5872fb3aa] (rid 104134) by dgp on 2007-01-30 01:55:51:
- closedate changed to: "2007-01-29T18:55:51"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 Originator: NO That's the right idea, but the patch I'm committing is a bit different in the details. Thanks for reporting the issue.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"