Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 75b6e3a3046a417f3797c8214e4611152a50c33e46e438b5c5704d910a327f43
Ticket: 54329e39c757ee2aac298a142ecfe2a7ebe72391
Compiled foreach uses excessive memory for lseq sequences
User & Date: apnadkarni on 2023-07-11 16:17:15
Changes

  1. icomment:
    I already had inserted the CACHE macros and was coding the change to distinguish between abstract and non-abstract probably as you were updating the ticket :-)
    
    The original is more efficient for non-abstract lists though I am a bit surprised at the difference. Code-wise there is very little difference calling Tcl_ListObjIndex noting that the GetElements in that fragment is done on *every* iteration. But its measurable, may be some cache effects? Who knows.
    
    Still doing performance measurements.
    
    /Ashok
    
  2. login: "apnadkarni"
  3. mimetype: "text/plain"