comp.lang.ada
 help / color / mirror / Atom feed
* Finding out minimal allocation unit
@ 2007-04-03 12:43 Stefan Bellon
  2007-04-03 13:22 ` Georg Bauhaus
                   ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Stefan Bellon @ 2007-04-03 12:43 UTC (permalink / raw)


Hi,

In a few places we are using long lists of items. Those items mostly
consist of just a pointer or a record of two pointers. We need cheap
insertions and deletions of elements in those lists, therefore we
indeed used linked lists and no array solution.

However we found out that the minimum allocation unit for a record of 8
bytes is much more (around 32 bytes?), so each list cell loses lots of
memory. Therefore we created some kind of "B-list" where each cell
contains more than one item in an array in order to make best use of
the space that is allocated anyway.

However tests have shown that 32 bytes does not seem to be the mimimum
allocation unit. If this was the case, then our solution should in no
case be worse than a simple linked list, but there are cases where it
is, indicating that 32 bytes is not the minimal allocation unit.

Is there a reliable way of finding out the smallest allocation unit?

Greetings,
Stefan

-- 
Stefan Bellon



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

end of thread, other threads:[~2007-04-10 21:42 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-03 12:43 Finding out minimal allocation unit Stefan Bellon
2007-04-03 13:22 ` Georg Bauhaus
2007-04-03 13:28   ` Stefan Bellon
2007-04-03 13:34   ` Martin Krischik
2007-04-03 13:37     ` Stefan Bellon
2007-04-03 15:17       ` Markus E Leypold
2007-04-04 17:16         ` Robert A Duff
2007-04-05  8:55           ` Markus E Leypold
2007-04-05 17:55             ` Stefan Bellon
2007-04-06  1:40               ` Randy Brukardt
2007-04-06  8:06                 ` Stefan Bellon
2007-04-06 11:06                   ` Markus E Leypold
2007-04-03 23:53     ` Randy Brukardt
2007-04-05  6:12       ` Stefan Bellon
2007-04-05  7:35         ` Martin Krischik
2007-04-05 17:58           ` Stefan Bellon
2007-04-07  9:27             ` Martin Krischik
2007-04-10 21:42             ` Robert A Duff
2007-04-05 13:07         ` Robert A Duff
2007-04-05 18:02           ` Stefan Bellon
2007-04-06  1:31             ` Randy Brukardt
2007-04-06  8:10               ` Stefan Bellon
2007-04-06 17:17                 ` Simon Wright
2007-04-06 12:38         ` Stephen Leake
2007-04-03 14:12   ` Larry Kilgallen
2007-04-03 13:48 ` Robert A Duff
2007-04-03 16:45 ` Dmitry A. Kazakov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox