You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-user@jakarta.apache.org by Robert Edgar <ro...@hkstar.com> on 2002/04/27 08:34:08 UTC

Slow processing

Hi there,
I am trying to load and parse a web server log file (about 3mb on average)
with a regex as follows
"(.*)\\s(.*)\\s(.*)\\s\\[([^\\]]+)\\]\\s\"(.*)\\s(.*)\\s(.*)\"\\s(.*)\\s(.*)
\\s\"(.*)\"\\s\"(.*)\"\\s\"(.*)\""

problem is it is takeing forever, I am getting only about 15 lines a second

code is something like

while((logEntry = bufferedreader.readLine()) != null){
 if (matcher.contains(logEntry, pattern)) {
   MatchResult result=matcher.getMatch();
 }
}

note for this test I am doing nothing with the result just getting it and
still its painfully slow...

Any idea on how to improve this

Thanks
Rob


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>