[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Yaron Minsky <yminsky@g...> |
| Subject: | [Caml-list] Re: Size limitation on input_value |
So, I've investigated this a little further, and it's a definite
regression. Here's the function I used:
# let run ~save ~load n =
let ar = Array.init n (fun i -> (i,i+1,i+2,i+3)) in
if save then begin
let f = open_out_bin "foo.val" in
output_value f ar;
close_out f
end;
if load then begin
let f = open_in_bin "foo.val" in
ignore (input_value f);
close_in f
end;;
val run : save:bool -> load:bool -> int -> unit = <fun>
If I run this on 3.07, i get this:
# run ~save:true ~load:true 1000000;;
- : unit = ()
On 3.08, I get this:
# run ~save:true ~load:true 1000000;;
Out of memory during evaluation.
# run ~save:true ~load:false 1000000;;
Out of memory during evaluation.
# run ~save:false ~load:false 1000000;;
- : unit = ()
#
So, the exception comes when saving, not when generating the data.
Is this a known bug? Are there any patches available?
y
On Thu, 22 Jul 2004 15:41:44 -0400, Yaron Minsky <yminsky@gmail.com> wrote:
> It seems that there is a size limitation on input_value that was not
> there before 3.08. Basically, I can't load things larger than the
> maximum string size. Is this a bug? Has anyone else hit this?
>
> Yaron
>
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners