in reply to regex large named.conf parsing
As to your problem - there's an easy way to find out where the bottleneck is: add timing statements.
Put that line before and after every area you want to time and you'll get a rough idea, in seconds, of what's happening. It won't help you really with real optimization, but it sounds like you just want to know if it's the first half or the second half that's causing your issues.print "Time: ", join(':', map { sprintf("%02d", $_) } (localtime(time) +)[2,1,0]), $/;
------
We are the carpenters and bricklayers of the Information Age.
Don't go borrowing trouble. For programmers, this means Worry only about what you need to implement.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|