Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions src/irmin-pack/IO.ml
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,6 @@ module Unix : S = struct
t.flushed <- header;
Buffer.clear t.buf

let buffers = Hashtbl.create 256

let buffer file =
try Hashtbl.find buffers file
with Not_found ->
let buf = Buffer.create (4 * 1024) in
Hashtbl.add buffers file buf;
buf

let v ~fresh ~version:current_version ~readonly file =
assert (String.length current_version = 8);
let v ~offset ~version raw =
Expand All @@ -169,7 +160,7 @@ module Unix : S = struct
offset;
raw;
readonly;
buf = buffer file;
buf = Buffer.create (4 * 1024);
flushed = header ++ offset;
}
in
Expand Down