Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 714c4b83ec1122bd76860ec9fc2a01a1beafacb8
Ticket: 853845ffffffffffffffffffffffffffffffffff
iterating with regexp over many expr performance problem
User & Date: erempel on 2003-12-04 05:43:27
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Can anyone confirm a bug or a feature :-)
    
    When looping over 30 regular expressions like
    
    foreach exp $expList {
      if {[regexp $exp "string"]} then {
        set x 1
      }
    }
    
    performs well, but when 31 expressions are used, the
    performance is
    considerably slower.
    
    I have included a file that results in
    
    407 microseconds per iteration
    3094 microseconds per iteration
    
    Quite a change for adding only 1 more expression.
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "erempel"
  9. subsystem changed to: "None"
  10. title changed to:
    iterating with regexp over many expr performance problem
    
  11. type changed to: "Bug"