Skip to content
Tcl Source Code History Of Ticket 3397978fffffffff
Login

History Of Ticket 3397978fffffffff

Artifacts Associated With Ticket 3397978fffffffff

  1. Ticket change [39ff9dfd62] (rid 112487) by dgp on 2011-08-25 12:43:55:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      
      Was observed while pursuing 3396731 that
      [string reverse $foo] always reaches the command
      procedure with $foo a shared value while
      [tcl::string::reverse $foo] can deliver an unshared
      value to the command procedure.
      
      If using ensembles reduces value sharing in this
      way, that might have unwelcome impacts.  Request
      we examine and see what's possible here.
      
      Unexamined, off-the-wall thought:  do we need to
      implement ensemble dispatch in terms of tailcall
      to improve this?
      
    4. foundin initialized to: "None"
    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: "dgp"
    10. subsystem initialized to: "21. [namespace]"
    11. title initialized to: "Ensembles force argument sharing"
    12. type initialized to: "RFE"
  2. Ticket change [24681dc9a3] (rid 131101) by ferrieux on 2011-08-25 22:32:50:

    1. icomment:
      Copying miguel's comment from 3396731 on that matter:
      
      > If we find a way to fixt that and do "frame surgery", we should make sure
      > to also use elsewhere - the [interp alias] implementation is a definite
      > candidate
      
      
      
    2. login: "ferrieux"
    3. mimetype: "text/plain"
    4. username: "ferrieux"
  3. Ticket change [5c2379c3a6] (rid 155386) by sebres on 2017-08-16 16:14:19:

    1. closer changed to: "nobody"
    2. comment changed to:
      Was observed while pursuing 3396731 that
      [string reverse $foo] always reaches the command
      procedure with $foo a shared value while
      [tcl::string::reverse $foo] can deliver an unshared
      value to the command procedure.
      
      If using ensembles reduces value sharing in this
      way, that might have unwelcome impacts.  Request
      we examine and see what's possible here.
      
      Unexamined, off-the-wall thought:  do we need to
      implement ensemble dispatch in terms of tailcall
      to improve this?
      
    3. icomment:
      Just as notice to me.
      Fixed in sebres-rewrite-ensemble resp. sebres-perf-branch (should be still rebased to fossil from git).
      
      Reason:
      - the first reference increment occurred if the parameters going in the call stack of "ens cmd" (mostly not compiled only, but sometimes compiled also);
      - the second increment by the ensemble rewrite (within instruction
      INST_INVOKE_REPLACE), if replaced to the call "::tcl::ens::cmd" during the execution.
      
      Annoying that this affects currently the performance in 2 ways:
      - firstly it causes an unnecessary handling, because of the shared state of given objects (objects duplication, memory effort, cpu-cache washout etc).
      - secondly causes additional execution overhead (create/release the list of arguments), see my last comment (2017-01-04) on ticket [3485833].
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. severity changed to: "Minor"