comp.lang.ada
 help / color / mirror / Atom feed
* Ada.Containers and Storage_Pools
@ 2006-08-09 12:04 msimonides
  2006-08-09 13:27 ` Colin Paul Gloster
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: msimonides @ 2006-08-09 12:04 UTC (permalink / raw)


I'm working on a caching DNS resolver for our project. The structures
used to hold data in cache make use of Ada.Containers packages (e.g.
each node stores a map of list resource records for each data type, so
there is a lot of individual containers).
Currently we're using Containers that come with GNAT 3.4.5 but we plan
to move to Ada 2005 containers in newer GNAT.

The problem I'm facing (and that is certain to show up in other parts
of our project) is that I need to limit the size of cache in memory. To
do this I would need to be able to have the containers allocate their
nodes from a user-specified storage pool with some limiting mechanism
(I already have such a pool and use it for objects that are allocated
by my code).

So I have a question: is there a possibility, either in GNAT 3.4.5 or
in Ada 2005, to specify a custom storage pool for use by containers? If
not, is there any other solution to limiting the size of memory used by
containers?

The only solution that I have found is using some other containers
library (I've seen that Booch components allow for specifying custom
storage pools), but I'd really prefer to stick with the standard ones.
-- 
Marcin Simonides




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

end of thread, other threads:[~2006-08-11 18:22 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-09 12:04 Ada.Containers and Storage_Pools msimonides
2006-08-09 13:27 ` Colin Paul Gloster
2006-08-09 16:16   ` Matthew Heaney
2006-08-09 16:05 ` Martin Krischik
2006-08-09 16:13 ` Matthew Heaney
2006-08-10  7:01   ` msimonides
2006-08-10 14:16     ` Matthew Heaney
2006-08-11 18:22       ` msimonides

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