Browse thread
[oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys]
[
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: | Richard Jones <rich@a...> |
| Subject: | Re: [oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys] |
On Sun, Apr 25, 2004 at 09:06:33PM +0100, Jon Harrop wrote: > In case anyone is interested, my peeve about carrying the length of a list > around inside the list in the case of the STL came from my use of a data > structure for molecular dynamics: The atomic structure is described by > particle coordinates within a cubic box under periodic boundary conditions. > Conventionally, the box is partitioned into voxels so that you can lookup > neighbouring atoms efficiently. Each voxel contains a list of atoms within > the voxel. I was often using ~10^6 voxels, so the STL list was carrying 4Mb > of unecessary data with my data structure. Don't you think that this is a rather special case, and probably you should have built your own data structure? For general purpose programming having the extra int (in STL) probably made sense [not that I've used C++ for years, and I don't think I'll be using it again]. Rich. -- Richard Jones. http://www.annexia.org/ http://www.j-london.com/ Merjis Ltd. http://www.merjis.com/ - improving website return on investment Learning Objective CAML for C, C++, Perl and Java programmers: http://www.merjis.com/richj/computers/ocaml/tutorial/ ------------------- 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