Skip to content

Commit

Permalink
Bigger buffers by default (big enough for most network packets...)
Browse files Browse the repository at this point in the history
  • Loading branch information
rixed committed Mar 6, 2013
1 parent 76b05ce commit 59076eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitstring.ml
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ module Buffer = struct
(* XXX We have almost enough information in the generator to
* choose a good initial size.
*)
{ buf = Buffer.create 128; len = 0; last = 0 }
{ buf = Buffer.create 2000; len = 0; last = 0 }

let contents { buf = buf; len = len; last = last } =
let data =
Expand Down

0 comments on commit 59076eb

Please sign in to comment.