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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to