caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Yaron Minsky <yminsky@gmail.com>
To: Caml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] Re: Size limitation on input_value
Date: Mon, 26 Jul 2004 12:48:15 -0400	[thread overview]
Message-ID: <891bd33904072609484169f951@mail.gmail.com> (raw)
In-Reply-To: <891bd33904072212415292635c@mail.gmail.com>

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


  reply	other threads:[~2004-07-26 16:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-22 19:41 [Caml-list] " Yaron Minsky
2004-07-26 16:48 ` Yaron Minsky [this message]
2004-07-26 17:12   ` [Caml-list] " Xavier Leroy
2004-07-26 18:14     ` Yaron Minsky
2004-07-27  7:41       ` Xavier Leroy
2004-07-27 12:04         ` Yaron Minsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=891bd33904072609484169f951@mail.gmail.com \
    --to=yminsky@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=yminsky@cs.cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).