-
Bug
-
Resolution: Fixed
-
Minecraft 14w04b, Minecraft 14w18b, Minecraft 14w31a
-
None
-
Linux, very likely unrelated just easier to proof on Linux
-
Unconfirmed
I decided to strace minecraft for fun and giggles to find out that it does many read() system calls with a buffer length of 1, I found this kind of disturbing and decided to investigate. And I could only reproduce this by creating a 1 byte buffer to read into from Java. Now what's the bug? Well this seems kind of really weird, chunk files are padded to 4096 bytes, so why not read those in well 'chunks' of 4096 bytes instead? Causes less system calls and is in theory faster. Attached is a small portion of the strace where the odd read system call behavior is visible.
- relates to
-
MC-34464 Performance Inefficiency Caused by Unnecessary Reads and Unbuffered IO on Region Files
- Resolved