Forum Discussion
Eduardo_Saito_1
Nimbostratus
Dec 11, 2007Regex taking 1% CPU - How to minimize CPU Load?
Hello Eveybody.
I'have an iRule that is working ok, but there is a regex thjat is taking 1% CPU on a 6400 BIG-IP. How Can I minimize CPU load?
Here is ...
hoolio
Cirrostratus
Dec 11, 2007Hi Eduardo,
A regex will eat up CPU no matter how streamlined you get it. You can probably save a bit of CPU time by escaping the periods with a backslash:
http://image\.domain\.com/[a-zA-Z0-9/._-]+
Depending on what you want to do with the image references, you might be able to replace the regexp with a stream profile. What are you actually doing with the indices once you get them?
Aaron
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
