Tcl Source Code

Ticket Change Details
Login
Overview

Artifact ID: 4ff704a9368d3ea503b608ca2afa2d7b51e5ec5a
Ticket: f00009f7ce4b58c8b6caedf976e37ea78be6d3c0
file exists, mtime... procedures leaks
User & Date: sebres 2015-07-30 15:39:04
Changes

  1. closer changed to: "nobody"
  2. icomment:
    Not so fast, because seems to be not so easy to fix...
    
    That fixes a leak only if I give this line direct in stdin inside tclsh:
    % time {file exists [string trim "C:/example.txt "]} 100000
    
    If I do the same in a file (for example "test"), and execute it via `source test`, it leaks again.
    Possible another constellation regarding of objects, or refcounts (history involved) or literals, etc.
    
    Very strange also, that the tests have different execution times (constantly  reproducible):
    - with leaks (% source ...): 16.03923 microseconds per iteration
    - w/o leaks (% time direct): 90.1751 microseconds per iteration
    
    But a 1 year older branch does the same without leaks within 15ms also!
    
  3. login: "sebres"
  4. mimetype: "text/plain"
  5. resolution changed to: "Wont Fix"
  6. status changed to: "Open"