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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,8fd45d32d7c94df3 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!87.79.20.105.MISMATCH!news.netcologne.de!ramfeed1.netcologne.de!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: User Defined Storage Pool : did you ever experiment with it ? Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Sat, 22 Jan 2011 09:49:10 +0100 Message-ID: <9hegoos1xnp0.1rad7mhxswplk$.dlg@40tude.net> NNTP-Posting-Date: 22 Jan 2011 09:49:10 CET NNTP-Posting-Host: 19459d50.newsspool2.arcor-online.net X-Trace: DXC=9QRT>;02;Y X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:17605 Date: 2011-01-22T09:49:10+01:00 List-Id: On Sat, 22 Jan 2011 01:04:41 +0100, Yannick Duch�ne (Hibou57) wrote: > Ada has provision for user defined storage pool, that is, an application > may have a (or multiple) custom implementation of a heap or like for any > kind of object. > http://www.ida.liu.se/edu/ugrad/progkon/Ada/ada-doc/LRM95/rm95html/rm9x-13-11.html > (from an uknown site, AdaIC server seems down today) > > I don't feel to remember I ever see a single Ada source with some use of > this. Is this just an not enough known feature, or does it mean there is > not so much benefit to use it ? http://www.dmitry-kazakov.de/ada/components.htm#Pools_etc http://www.dmitry-kazakov.de/ada/components.htm#Generic_Doubly_Linked_Web > Or else, may be this could be beneficial > but no one never go up to there (no evaluation of this option, or anything > else) ? Storage pools are extremely useful for purposes, which are not directly related to memory allocation. If you take a look at the example I provided, you will notice that the storage pools there do not maintain a heap of their own. They rather take the memory from some backend pool. Consider the doubly-link list implementation. It is storage pool based. The links are not in the element body. They are maintained by the pool. So you can have any type as the list element type, plain strings for example. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de