Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 7bb0c3f7c2c06329fae7eea4ac54c71c9cea3f211e465a7c9031f86699bdae49
Ticket: f5e36eb588e585e47f6e875c7fb18acc0b1bf603
Uncompiled lassign on lseq results in memory bloat
User & Date: apnadkarni on 2023-09-17 05:08:09
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-markdown"
  4. comment changed to:
    The uncompiled version of lassign results in significant memory bloat compared to the compiled version when used on a `lseq` abstract list.
    
    ```
    % set l [lseq 1000000] ; llength $l
    1000000
    % cat /proc/[pid]/statm
    56332 1320 1040 1 0 343 0
    % llength [lassign $l a]
    999999
    % cat /proc/[pid]/statm
    56332 1320 1040 1 0 343 0
    % set lassign lassign
    lassign
    % llength [$lassign $l a]
    999999
    % cat /proc/[pid]/statm
    79742 24774 1040 1 0 23753 0
    ```
    
  5. foundin changed to: "9.0"
  6. is_private changed to: "0"
  7. login: "apnadkarni"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "9546e9877f1a8899e25a89082561ee694e7fb402"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "apnadkarni"
  14. subsystem changed to: "- New Builtin Commands"
  15. title changed to: "Uncompiled lassign on lseq results in memory bloat"
  16. type changed to: "Bug"