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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e06ac014b37d3dcd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-01-24 06:32:20 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!cyclone.swbell.net!bos-service1.ext.raytheon.com!dfw-service2.ext.raytheon.com.POSTED!not-for-mail Message-ID: <3E314E65.3D7C163C@raytheon.com> From: Mark Johnson X-Mailer: Mozilla 4.76 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Memory chunks: are they much speed-up? References: <3e30f9a1$0$33922$bed64819@news.gradwell.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 24 Jan 2003 08:32:05 -0600 NNTP-Posting-Host: 192.27.48.39 X-Complaints-To: news@ext.ray.com X-Trace: dfw-service2.ext.raytheon.com 1043418739 192.27.48.39 (Fri, 24 Jan 2003 08:32:19 CST) NNTP-Posting-Date: Fri, 24 Jan 2003 08:32:19 CST Organization: Raytheon Company Xref: archiver1.google.com comp.lang.ada:33400 Date: 2003-01-24T08:32:05-06:00 List-Id: Victor Porton wrote: > > Is allocating memory in chunks by several (small) objects at once a > significant speed-up (compared to standard allocators) in typical Ada > impl.? It is hard to say because it depends upon a number of factors: - your allocation, deallocation pattern - the algorithm used in a specific allocator - the relative timing of allocations and so on. In general, a special purpose allocator will always be "faster" than a general purpose one. It may also be "more efficient" (less unused space). However, in general, I find it better to avoid allocation / deallocation in my applications - especially in real time and "not have that problem". There are several ways to do that; ask if you need some examples. --Mark