Skip to content
Tcl Source Code History Of Ticket 853845ffffffffff
Login

History Of Ticket 853845ffffffffff

Artifacts Associated With Ticket 853845ffffffffff

  1. Ticket change [714c4b83ec] (rid 100647) by erempel on 2003-12-04 05:43:27:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized 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 initialized to: "None"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "erempel"
    9. subsystem initialized to: "None"
    10. title initialized to:
      iterating with regexp over many expr performance problem
      
    11. type initialized to: "Bug"
  2. Ticket change [a1ae6ca3a6] (rid 109767) by dkf on 2003-12-04 16:21:34:

    1. icomment:
      Logged In: YES 
      user_id=79902
      
      No file attached.  Remember to check the box as well as
      specifying the filename...  :^/
      
      (Also, which exact version of Tcl are you using?  [info
      patchlevel] will tell you.  Thanks!)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. subsystem changed to: "43. Regexp"
    5. username: "dkf"
  3. Ticket change [b9af9c7fd8] (rid 129189) by hobbs on 2003-12-05 00:57:36:

    1. status changed to: "Closed"
  4. Ticket change [a0725795b3] (rid 96814) by hobbs on 2003-12-05 00:57:37:

    1. icomment:
      Logged In: YES 
      user_id=72656
      
      30 is the exact number of locally cached REs in the Tcl
      core, so this is expected.  Why one would look over so many
      is the real question.  Tcl does also cache REs in objects,
      so repeeat RE use of the object should not be slow.  Always
      do such things in a proc though, as toplevel loops don't get
      byte-compiled.
      
      
    2. login: "hobbs"
    3. mimetype: "text/plain"
    4. resolution changed to: "Invalid"
    5. username: "hobbs"
  5. Ticket change [ee559c7a79] (rid 104067) by hobbs on 2003-12-05 00:57:38:

    1. closedate changed to: "2003-12-04T17:57:38"
    2. closer changed to: "hobbs"
  6. Ticket change [596040fb56] (rid 117971) by nobody on 2004-05-07 08:54:05:

    1. icomment:
      Logged In: NO 
      
      test
      
      
    2. login: "nobody"
    3. mimetype: "text/plain"
    4. username: "nobody"