stream - Increase Internal Buffer Size Used by Java FileInputStream -
when calling read(byte[])
on fileinputstream
, read size 8k, if byte[]
exponentially large.
how increase max read amount returned per call?
please not suggest method merely masks limitation of fileinputstream
.
update: there doesn't seem real solution this. however, calculated method call overhead 226us on system, 1g file. it's safe not going impact performance in real way.
wrap in bufferedinputstream allows specify buffer size.
Comments
Post a Comment