From: Amit Dubey <adubey@hopper.math.uwaterloo.ca>
To: caml-list@inria.fr
Subject: [Caml-list] Strange Behaviour with Hashtables and Marshalling
Date: Wed, 25 Jul 2001 14:20:05 -0400 (EDT) [thread overview]
Message-ID: <200107251820.OAA06487@hopper.math.uwaterloo.ca> (raw)
Hi Everyone,
I've recetly have two odd things happen to me in O'Caml, and I
was wondering if anyone else has come across the same behaviour --
(1) If I'm doing some processing, then I save a few relevant data
structures to disk with Marshal, terminate, then restart, reload
the data and then continue processing, I use significantly less memory than
if I process everything without stopping. I'd imagine with garbage
collection, this wouldn't be a problem, yet I have come across it with both
the x86 and sparc native code versions (haven't tried bytecodes or any
other platform). Forcing a GC collection doesn't seem to help.
(2) If I'm saving really really big hashtables, which are part of
an enumerated type that can also contain closures ie:
module MyHash = Hashtbl.Make(...)
type t = Table of float MyHash.t | Junk of foo | Func of (float -> float)
After marshalling and reloading an instance of Table(s), some elements
in the table have mysteriously changed. This isn't a problem if I change
the type of t to:
type t = Table of float MyHash.t | Junk of foo
Again, I think I noticed this on both the sparc and x86 versions.
I didn't find out exactly what was going on (deadlines!), but
I was just wondering if anyone might have ideas as to what the
problem might be.
Thanks,
Amit Dubey
-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
next reply other threads:[~2001-07-25 18:20 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-25 18:20 Amit Dubey [this message]
2001-07-25 18:33 Damien Doligez
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=200107251820.OAA06487@hopper.math.uwaterloo.ca \
--to=adubey@hopper.math.uwaterloo.ca \
--cc=caml-list@inria.fr \
/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