Re: Streamtokenizer

Tom Tromey <[email protected]>
Newsgroups gmane.comp.gcc.java.devel
Message-ID <[email protected]>
>>>>> "OneGuy" == OneGuy  <[email protected]> writes:

OneGuy> Memory usage was even worse (55 MB with Classpath vs 35 MB with Sun's).

It looks like our nextToken will often create a new StringBuffer.
Perhaps it would be better to make one and cache it.

FWIW I'd accept a clean patch to further optimize StreamTokenizer.
Most likely the only reason it performs poorly is that it never popped
up as a performance limiter before.

Tom
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.