Artifacts Associated With Ticket 853845ffffffffffffffffffffffffffffffffff
Ticket change [714c4b83ec] (rid 100647) by erempel on 2003-12-04 05:43:27:
- assignee initialized to: "nobody"
- cmimetype initialized to: "text/plain"
- 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. - foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "erempel"
- subsystem initialized to: "None"
- title initialized to:
iterating with regexp over many expr performance problem
- type initialized to: "Bug"
Ticket change [a1ae6ca3a6] (rid 109767) by dkf on 2003-12-04 16:21:34:
- 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!)
- login: "dkf"
- mimetype: "text/plain"
- subsystem changed to: "43. Regexp"
- username: "dkf"
- icomment:
Ticket change [b9af9c7fd8] (rid 129189) by hobbs on 2003-12-05 00:57:36:
- status changed to: "Closed"
Ticket change [a0725795b3] (rid 96814) by hobbs on 2003-12-05 00:57:37:
- 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.
- login: "hobbs"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- username: "hobbs"
- icomment:
Ticket change [ee559c7a79] (rid 104067) by hobbs on 2003-12-05 00:57:38:
- closedate changed to: "2003-12-04T17:57:38"
- closer changed to: "hobbs"
Ticket change [596040fb56] (rid 117971) by nobody on 2004-05-07 08:54:05:
- icomment:
Logged In: NO test
- login: "nobody"
- mimetype: "text/plain"
- username: "nobody"
- icomment: