On Mon, 2009-05-04 at 23:12 +0200, Christoph Höger wrote:
I need to lex a textfile as fast as possible(TM) by using a set of regex
Pattern expects a CharSequence as input. I used to read the input file
into a StringBuffer completely and than start lexing (cutting of the
part that matches in every step).
This is not very effective from both the memory and runtime perspective.
(ok, not so much runtime, since you _have_ to read every char anyway).
Today I just searched for some kind of delayed Buffer that would take
the input from the reader on demand or even do it in a parallel thread.
Is there any such thing out there yet?
fedora-devel-java-list mailing list