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:
Felix Bergmann 2020-04-07 09:45:18 +02:00 committed by GitHub
parent bffabb4a05
commit 8dc955542d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -346,7 +346,7 @@ public class HashChunkletManager implements ChunkletManager {
try { try {
fileIn = new FileInputStream(location); fileIn = new FileInputStream(location);
objIn = new ObjectInputStream(fileIn); objIn = new ObjectInputStream(new BufferedInputStream(fileIn));
storeIn = (ChunkletStore) objIn.readObject(); storeIn = (ChunkletStore) objIn.readObject();
} }
catch (IOException ex) { catch (IOException ex) {