Roedy Green
Usenet Archive
- Joined
- Dec 17, 2000
- Messages
- 18,395
- Reaction score
- 0
When you do your lego thing to create a BufferedReader or BufferedWriter, you get to specify two buffer sizes, one in bytes for the byte stream and one in chars for the character stream.
Given that you have N bytes to spend on buffers for this file, how should you allocate them?
I have been told the best ratio is 32Kbytes for every 24K chars. I can's see why that would be. I would have thought most should go to the byte stream for physical i/o. Has anyone ever experimented?
Given that you have N bytes to spend on buffers for this file, how should you allocate them?
I have been told the best ratio is 32Kbytes for every 24K chars. I can's see why that would be. I would have thought most should go to the byte stream for physical i/o. Has anyone ever experimented?