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

History Of Ticket 1626518fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 1626518fffffffffffffffffffffffffffffffff

  1. Ticket change [b7f8555d2a] (rid 128885) by pcmacdon on 2007-01-02 23:03:05:

    1. assignee initialized to: "hobbs"
    2. cmimetype initialized to: "text/plain"
    3. 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
      
      
    4. foundin initialized to: "obsolete: 8.5a5"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "pcmacdon"
    10. subsystem initialized to: "20. [interp]"
    11. title initialized to: "remote alias invocation 10x slowdown"
    12. type initialized to: "Bug"
  2. Ticket change [762e07552b] (rid 105531) by pcmacdon on 2007-01-03 06:03:06:

    1. icomment:
      
      
      File Added - 209385: interp.tcl
      
      
      
    2. login: "pcmacdon"
    3. mimetype: "text/plain"
    4. username: "pcmacdon"
  3. Add attachment "interp.tcl" [c62a2778e4] (rid 121720) by pcmacdon on 2007-01-03 06:03:06.

  4. Ticket change [db47cef590] (rid 107929) by pcmacdon on 2007-01-03 11:17:32:

    1. 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???
      
      
      
    2. login: "pcmacdon"
    3. mimetype: "text/plain"
    4. username: "pcmacdon"
  5. Ticket change [769a54e1fc] (rid 105617) by pcmacdon on 2007-01-03 12:02:48:

    1. 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);
          }
      
      
      
    2. login: "pcmacdon"
    3. mimetype: "text/plain"
    4. username: "pcmacdon"
  6. Ticket change [2f6030c216] (rid 93053) by hobbs on 2007-01-03 15:04:53:

    1. assignee changed to: "dgp"
    2. icomment:
      Logged In: YES 
      user_id=72656
      Originator: NO
      
      Don did the return additions, so I'll let him comment.
      
      
    3. login: "hobbs"
    4. mimetype: "text/plain"
    5. priority changed to: "6"
    6. username: "hobbs"
  7. Ticket change [e5872fb3aa] (rid 104134) by dgp on 2007-01-30 01:55:51:

    1. closedate changed to: "2007-01-29T18:55:51"
    2. closer changed to: "dgp"
    3. 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.
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"