comp.lang.ada
 help / color / mirror / Atom feed
From: Martin Krischik <krischik@users.sourceforge.net>
Subject: Re: Ada memory management seems slow
Date: Thu, 13 Oct 2005 18:39:55 +0200
Date: 2005-10-13T18:39:55+02:00	[thread overview]
Message-ID: <2621912.Es2GesFk5Z@linux1.krischik.com> (raw)
In-Reply-To: dik0h6$obt$2@news7.svr.pol.co.uk

Makhno wrote:

> I have been given some Ada software to use, and it uses some linked list
> structures. I compiled it using Win32 GNAT.
> These structures are dynamically allocated, and when they are
> de-allocated, it takes up a almost 2 seconds of computing time, even
> though this is a fast PC and the actual memory they use doesn't appear to
> be much (seems less than 1mb according to the task manager).

GNAT uses malloc and free from the C library  for memory management - so
performace is the same as with C. Only with C nobody measures the
performance - people just expect malloc and free to be as fast as possible.

> I was wondering what options are available for memory management, or
> whether I am inadvertently using a 'slow' mode.

Well there is indeed a memory debug option - but its off by default.

Martin

-- 
mailto://krischik@users.sourceforge.net
Ada programming at: http://ada.krischik.com



  parent reply	other threads:[~2005-10-13 16:39 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-12 21:49 Ada memory management seems slow Makhno
2005-10-12 22:17 ` Robert A Duff
2005-10-13  1:39   ` Anh Vo
2005-10-13 16:39 ` Martin Krischik [this message]
2005-10-13 18:39   ` Makhno
2005-10-14  9:59     ` Alex R. Mosteo
2005-10-14 10:38       ` Martin Dowie
2005-10-14 12:06         ` Stephen Leake
2005-10-14 19:21         ` Gautier Write-only
2005-10-15 10:32           ` Georg Bauhaus
2005-10-15 11:10             ` Simon Wright
2005-10-14 19:34       ` tmoran
2005-10-14 14:49     ` Martin Krischik
2005-10-16  0:40     ` Robert A Duff
replies disabled

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