At 11:44 AM 8/6/2003 -0400, [EMAIL PROTECTED] wrote:
I have a pipe-delimited file that I want to read from. As I read each line
of file, I tokenize it and put each token in an Object[][]. Everything
works fine, the only problem is that it taks too long to read whole file.
Is there a way to speed up this proccess?

Do you really need to create a brand new Boolean for each element, or do you just merely need to have true and false for each? If so, why not just use reuse 2 Booleans and skip the 'new' (which is costly).

        Also its not obvious if "grid" is a buffered stream or not.
        Btw, try NIO... specifically MappedByteBuffer.  Its pretty fast.

Frank G.

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to