Forum posts for reader

reader vs buffered reader

what would be the performance difference on calling read(char[] cbuf) between FileReader and BufferedReader assuming the size of the buffer for BufferedReader to be the same as cbuf.

I know that a simple read() call on the FileReader is slower sice every time a native call is being made to read each character.

A read(char[] cbuf) on the FileReader would read cbuf size of chars with just one native call which is similar to that of the BufferedReader.

So would there be any performance difference if read(char[] cbuf) method is being used on FileReader vs BufferedReader.

View complete forum thread with replies

Other posts related to reader

See Related Forum Messages: Follow the Links Below to View Complete Thread

fingerprint reader or thumb reader
adobe reader and acrobat reader [closed]
reader vs buffered reader
CSV parser/reader for C#? [closed]
The “reader” monad
Fingerprint Reader
Blackberry smartcard reader example
Casting to a reader or creating a new reader
Fingerprint Reader
PDF Reader
fingerprint reader [closed]
InputStream reader
Buffered Reader
geotools reader
File reader encapsulation in a table reader

What is the carbon footprint of your coffee?

Is it low? Is it high? Can this things really kill the planet Earth? Maybe the answer will surprise you. Maybe not.