in reply to Crafting a regex
Yes, I know that there is such a thing as Apache::ParseLog but since it's OO, I have efficiency worriesThe overhead to call a method is about twice that of a normal subroutine call, if I recall "The Damian"'s benchmarks on it. You are optimizing a lot of stuff that could better be served by using a module. Please stop reinventing an inefficient wheel.
At a minimum, look inside the module source (it's free!) to see how they solved it.
-- Randal L. Schwartz, Perl hacker
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Crafting a regex
by arturo (Vicar) on Oct 11, 2000 at 21:31 UTC |