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 Path: g2news2.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) Date: Tue, 04 Aug 2009 11:38:03 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4a776a94$0$31878$9b4e6d93@newsspool3.arcor-online.net> <4a776b25$0$31878$9b4e6d93@newsspool3.arcor-online.net> <47559b1f-cb97-455b-b76d-98a4f8a834ac@f37g2000yqn.googlegroups.com> <4a77fcc3$0$30229$9b4e6d93@newsspool1.arcor-online.net> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1249400283 13158 192.74.137.71 (4 Aug 2009 15:38:03 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 4 Aug 2009 15:38:03 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:n8751+c7McWqSY6c11XkcukeL/U= Xref: g2news2.google.com comp.lang.ada:7573 Date: 2009-08-04T11:38:03-04:00 List-Id: Georg Bauhaus writes: > More guesswork: Is an empty Unbounded_String a heavy > construct? If you're trying to make a program fast, you almost certainly don't want to be using unbounded strings, or any other controlled types. At least not in any time-critical parts. Controlled types use a lot of memory, and are quite slow. AdaCore is working on improving this situation, but controlled types will always be somewhat heavy. - Bob