a bugfix in Sequence.product;

changed default block size of MList
This commit is contained in:
Simon Cruanes 2013-03-08 16:05:34 +01:00
parent 0dd50ca9a7
commit 9b6acc00ae

View file

@ -197,7 +197,7 @@ module MList = struct
(** Build a MList of elements of the Seq. The optional argument indicates (** Build a MList of elements of the Seq. The optional argument indicates
the size of the blocks *) the size of the blocks *)
let of_seq ?(size=64) seq = let of_seq ?(size=8) seq =
(* read sequence into a MList.t *) (* read sequence into a MList.t *)
let start = make size in let start = make size in
let l = ref start in let l = ref start in
@ -255,7 +255,7 @@ let sort_uniq ?(cmp=Pervasives.compare) seq =
(** Cartesian product of the sequences. *) (** Cartesian product of the sequences. *)
let product outer inner = let product outer inner =
let outer = persistent outer in let inner = persistent inner in
from_iter from_iter
(fun k -> (fun k ->
outer (fun x -> outer (fun x ->