Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[oliver: Re: [Caml-list] Should be INSIDE STANDARD-LIB: Hashtbl.keys]
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-04-26 (10:14)
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].


Richard Jones.
Merjis Ltd. - improving website return on investment
Learning Objective CAML for C, C++, Perl and Java programmers:

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: