regex processing speed

From: Jayme Cox <[email protected]>
Date: Tue, 22 Jul 1997 16:08:11 -0700 (PDT)

Which is faster:

refresh_pattern/i \.(gif|jpeg|jpg|xbm)$ 10800 90% 43200

OR

refresh_pattern/i ^http://.*\.gif$ 10080 90% 40320
refresh_pattern/i ^http://.*\.jpeg$ 10080 90% 40320
refresh_pattern/i ^http://.*\.jpg$ 10080 90% 40320
refresh_pattern/i ^http://.*\.xbm$ 10080 90% 40320

I ask this because I recently changed to the first one in my squid.conf
file and noticed that the squid process was taking up more CPU time than
before. (Although it could have been something totaly unrelated to this
change).

Thanks,
                                --Jayme
Received on Tue Jul 22 1997 - 16:12:09 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:35:49 MST