Skip to content
Tcl Source Code History Of Ticket b9ecf3ce98
Login

History Of Ticket b9ecf3ce98

Artifacts Associated With Ticket b9ecf3ce98

  1. Ticket change [88ae61c117] (rid 146635) by pooryorick on 2016-05-05 04:11:20:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      The following script causes a string representation to be generated for each
      item in the list passed to <code>uplevel</code>, but if a level specifier is
      added as the first argument to <code>uplevel</code>, string representations
      aren't generated:
      
      <code><verbatim>
      apply {{} {
          uplevel [list apply {{args} {
              foreach arg $args {puts [::tcl::unsupported::representation $arg]}
          }} {*}[list [expr 1] [expr 2]]]
      }}
      </verbatim></code>
      
      The generation of string representations for items in such a list could have a
      significant unexpected performance/memory impact.
      
      Ticket 1017884 is related, but this one-argument case could probably be fixed
      without the backward-incompatible change suggested in that ticket, since the
      single argument can be assumed to be the script to be evaluated.
      
    5. foundin initialized to: "8.6.5"
    6. is_private initialized to: "0"
    7. login: "pooryorick"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "e476148cded301ffff84bcdc432536dc0c949e88"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "pooryorick"
    14. subsystem initialized to: "18. Commands M-Z"
    15. title initialized to:
      [uplevel $list], [uplevel 1 $list] and generation of string representations
      
    16. type initialized to: "Bug"
  2. Ticket change [bf67df259c] (rid 186854) by pooryorick on 2020-09-19 14:15:40:

    1. icomment: "Fixed in [45569c7084346632] for core-8-barnch."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  3. Ticket change [191070729b] (rid 186858) by pooryorick on 2020-09-19 14:34:37:

    1. icomment: "Fixed in [d67c23f6d1422fcf] for core-8-6-branch."
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [c9f3dc345a] (rid 186860) by dgp on 2020-09-19 16:32:01:

    1. icomment:
      
      Effect of this patch is to avoid string generation for the particular
      case of a pure list with no explicit level argument.
      
      Tradeoff is the shimmering generation of a list representation for values that came in with other intreps.  Might mean loss of bytecode. Or fragile intreps. Or expensive ones.
      
      It's a lot easier to train coders to include the explicit level argument than to have mercurial performance dances like this.
      
    2. login: "dgp"
    3. mimetype: "text/plain"
  5. Ticket change [114b3a249c] (rid 186909) by pooryorick on 2020-09-20 13:47:58:

    1. icomment:
      This tradeoff has been mitigated by only checking list length if there is no string representation.  This covers the bytecode case, which is probably the most important one. See [76da711d7172c54a].  It could be further mitigated by checking for a list or dict intrep first, and then ultimately by writing the TIP that would make the whole check unnecessary.
      
    2. login: "pooryorick"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [b5591bfa87] (rid 186984) by pooryorick on 2020-09-23 18:54:11:

    1. closedate changed to: "2459116.28763721"
    2. closer changed to: "pooryorick"
    3. login: "pooryorick"
    4. mimetype: "text/plain"
    5. resolution changed to: "Fixed"
    6. status changed to: "Closed"