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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: class wide iterable (and indexable) Date: Tue, 8 Jan 2019 20:25:21 +0100 Organization: A noiseless patient Spider Message-ID: References: <2a6929c5-72fa-4d84-953a-44ea4597ab38@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 8 Jan 2019 19:25:22 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="bcb5528ee265c0245c314df840f83183"; logging-data="9404"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18cjdQVjZVm6kxiktNaIL3I" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 Cancel-Lock: sha1:FEzteHwfe96AMgS0gjAj7PH91i8= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:55246 Date: 2019-01-08T20:25:21+01:00 List-Id: Den 2019-01-08 kl. 10:51, skrev Dmitry A. Kazakov: >> A compiler using shared generics could take a lot less time to compile >> instances because there is little code involved. > > Without any doubt. Worse that that, yes, instances are slow to compile, > but I have an impression that merely with-ing compiled instances > drastically increases the compile time of a package and the memory used > by the compiler. At the end of the dependency chain it becomes minutes > to compile a three-liner body. There is something utterly wrong with > GNAT there. We have a package with db-related stuff for each table we have in our system - which is about 300. These are auto-generated from xml. In order to get away from our home brew linked list, I added a list of type Add.Containers.Doubly_Linked_List. and for make something else easier we added a hashmap as well. Now that made the exesize grow so big, that we had to patch ld on AIX to use more that 1Gb mem... The resulting exe went from 200 to 280 mb... Some exefiles were still too big, so at auto-generation these features are only inserted if the table in question is configured to do so. Yes, generics is voluminous with gnat. -- Björn