Performances of GuessInputStream.read() method are low
Content type identification of an InputStream
Brought to you by:
gcontini
Originally created by: contini....@gmail.com
I'm experiencing very low performances of GuessInputStream read(); method
when i try to read one byte at a time.
On an 4 years old computer (Athlon 2400+?) dual core i get more than 1.6
seconds for reading a 160Kb file from a byteArrayInputStrem.
If i use the read(byte[]) with a 8K byte buffer the time goes down to 0.2
seconds.
Maybe some optimization is missing.
View and moderate all "tickets Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Tickets"
Originally posted by: dvd.s...@gmail.com
Seem there is a problem with the RandomAccessInputStream...
In fact it's a bit complicated to buffer the data and use the random access... so you
should avoid to use the read() method or buffer !GuessInputStream externally with a
!BufferInputStream.
In fact i also noticed that there is a slow performance decoding a base64 and i add
some buffer in the middle.
Status: Accepted