Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: e468266ef2c3b4d2aca3a6a0093979d505bd82f8
Ticket: 496456ffffffffffffffffffffffffffffffffff
regexp engine takes too much RAM
User & Date: dkf on 2001-12-27 19:47:47
Changes

  1. assignee changed to: "dkf"
  2. icomment:
    Logged In: YES 
    user_id=79902
    
    The problem is probably related to the quantity of capturing parentheses involved.  There
    may be some linkage to the use of arrays (which are *truly* not appropriate for this use;
    lists are much more like what is needed) and the retention of all the regexps used in
    building the main one too.  Inded, I could rewrite the code to build the regexp quite
    quickly (though I've no idea how large the single resulting RE would actually be, or
    whether there would be any performance gain through doing this after the initial
    loading phase.)
    
    There is possibly a need for a flag to say that no capturing at all should be done by a
    regexp, (making "RE(RE)RE" equivalent to "RE(?:RE)RE") which might be useful in
    situations such as this.  If that's really the case, then this is a FRQ, not a bug per se.
    
    I'll have a look at this in detail after the holidays.
    
    
  3. login: "dkf"
  4. mimetype: "text/plain"
  5. username: "dkf"