From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3d9b089555215fa7 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!solnet.ch!solnet.ch!news-zh.switch.ch!switch.ch!news.hispeed.ch!linux2.krischik.com!news From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Ada memory management seems slow Date: Thu, 13 Oct 2005 18:39:55 +0200 Organization: Cablecom Newsserver Message-ID: <2621912.Es2GesFk5Z@linux1.krischik.com> References: NNTP-Posting-Host: 84-73-3-231.dclient.hispeed.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.hispeed.ch 1129222802 22469 84.73.3.231 (13 Oct 2005 17:00:02 GMT) X-Complaints-To: news@hispeed.ch NNTP-Posting-Date: Thu, 13 Oct 2005 17:00:02 +0000 (UTC) User-Agent: KNode/0.9.2 Xref: g2news1.google.com comp.lang.ada:5601 Date: 2005-10-13T18:39:55+02:00 List-Id: 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