mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Introduce buffering in HashChunkletManager
Improve the performance by introducing buffering. The current usage of FileInputStream and ObjectInputStream don't use buffering.
This commit is contained in:
parent
bffabb4a05
commit
8dc955542d
@ -346,7 +346,7 @@ public class HashChunkletManager implements ChunkletManager {
|
||||
|
||||
try {
|
||||
fileIn = new FileInputStream(location);
|
||||
objIn = new ObjectInputStream(fileIn);
|
||||
objIn = new ObjectInputStream(new BufferedInputStream(fileIn));
|
||||
storeIn = (ChunkletStore) objIn.readObject();
|
||||
}
|
||||
catch (IOException ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user