caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] removing an item from a list efficiently
@ 2003-11-07  9:32 Dustin Sallings
  2003-11-07  9:49 ` jrouquie
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Dustin Sallings @ 2003-11-07  9:32 UTC (permalink / raw)
  To: Caml Mailing List


	I'm trying to implement an LRU cache and I'm using a list to keep up 
with the accesses.  I'm using filter to remove the item for 
repositioning it.  That's very slow.

	Is there a better way to efficiently move a list item to the front, or 
should I just implement a linked list to meet my requirements?

-- 
Dustin Sallings

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-11-09  1:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-07  9:32 [Caml-list] removing an item from a list efficiently Dustin Sallings
2003-11-07  9:49 ` jrouquie
2003-11-07 12:46 ` Stefano Zacchiroli
2003-11-08  8:49   ` Dustin Sallings
2003-11-08  9:16     ` Stefano Zacchiroli
2003-11-09  1:13       ` Dustin Sallings
2003-11-08 10:59     ` Oleg Trott
2003-11-08 11:02       ` Oleg Trott
2003-11-08 18:57     ` Brian Hurt
2003-11-07 16:50 ` Brian Hurt

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