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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8fd45d32d7c94df3,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: User Defined Storage Pool : did you ever experiment with it ? Date: Sat, 22 Jan 2011 01:04:41 +0100 Organization: Ada @ Home Message-ID: NNTP-Posting-Host: si1wcqmfPAlDmjwCD+0L/g.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/11.00 (Win32) Xref: g2news2.google.com comp.lang.ada:17596 Date: 2011-01-22T01:04:41+01:00 List-Id: Hi, 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 ? Or else, may be this could be beneficial= = but no one never go up to there (no evaluation of this option, or anythi= ng = else) ? Straightforwardly, I may think about some examples where this may be = beneficial (you may say if you agree or not): * Avoid memory fragmentation due to objects of different size (one pool = = with all object of the same size may limit the overall memory = fragmentation) * Help the CPU cache to be more efficient (if a pool is created for the = = most accessed type of objects, there may be grouped together in a single= , = thus better use of CPU internal cache) * Profit from noticeable behavior of some process, like one which most o= f = time allocate/deallocate like a stack would while not being really a sta= ck = (so could not be allocated on the stack). Or may be basic containers just make user storage pool unnecessary ? (fo= r = containers holding object values, not reference) Or is the typical head implementation clever enough is all cases to avoi= d = the need of user defined storage pools ? Just wondered why, while memory resource is so much important, and user = = defined storage pool does not look like an obscure feature, I've never = seen it at work in multiple sources I could read from the web. -- = Si les chats miaulent et font autant de vocalises bizarres, c=E2=80=99es= t pas pour = les chiens. =E2=80=9CI am fluent in ASCII=E2=80=9D [Warren 2010]