caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Hendrik Tews <tews@tcs.inf.tu-dresden.de>
To: Jan Kybic <kybic@fel.cvut.cz>
Cc: caml-list@pauillac.inria.fr
Subject: Re: [Caml-list] Re: Q: automatic forgetting cache, module Weak, Gc control
Date: 02 Jul 2004 10:53:59 +0200	[thread overview]
Message-ID: <rlk6xmokm0.fsf@ithif51.inf.tu-dresden.de> (raw)
In-Reply-To: <m2n02j3daj.fsf_-_@fel.cvut.cz>

Jan Kybic <kybic@fel.cvut.cz> writes:

   I think the right idea is to insert each cached values into two
   structures: a weak hashtable so that the value can be found fast, and 
   another global FIFO type structure that will start to drop oldest values when
   there is not enough memory. For efficiency, the FIFO structure will 
   hold blocks (arrays). As the FIFO structure is global and will have to
   hold different types of data, storing Obj.t seems to be apropriate.
   
Why don't you use a variant type?

Bye,

Hendrik

-------------------
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


  parent reply	other threads:[~2004-07-02  8:54 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-30 11:05 [Caml-list] " Jan Kybic
2004-07-01  8:43 ` Jacques GARRIGUE
2004-07-01 13:59   ` skaller
2004-07-01 16:25     ` [Caml-list] " Jan Kybic
2004-07-01 18:14       ` Alex Baretta
2004-07-02  8:53       ` Hendrik Tews [this message]
2004-07-02  9:40         ` Jan Kybic

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=rlk6xmokm0.fsf@ithif51.inf.tu-dresden.de \
    --to=tews@tcs.inf.tu-dresden.de \
    --cc=caml-list@pauillac.inria.fr \
    --cc=kybic@fel.cvut.cz \
    /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).