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 Path: g2news2.google.com!postnews.google.com!s15g2000yqs.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: GNAT's stack checking in Ubuntu 9.04 (and Shootout regex-dna) Date: Mon, 10 Aug 2009 13:29:12 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <4a776a94$0$31878$9b4e6d93@newsspool3.arcor-online.net> <4a7f1fc5$0$31344$9b4e6d93@newsspool4.arcor-online.net> <9adb4985-582c-4cbf-906c-3afa7dcd31f6@g1g2000vbr.googlegroups.com> NNTP-Posting-Host: 94.108.130.223 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1249936154 25681 127.0.0.1 (10 Aug 2009 20:29:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 10 Aug 2009 20:29:14 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: s15g2000yqs.googlegroups.com; posting-host=94.108.130.223; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061208 Iceweasel/3.0.12 (Debian-3.0.12-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7675 Date: 2009-08-10T13:29:12-07:00 List-Id: jonathan wrote on comp.lang.ada: [Using one's own copy of GNAT.Spitbol.*] >=A0The first thing I tried worked rather well: I replaced > > =A0 =A0Stack_Size : constant Positive :=3D 2000; > > with > > =A0 =A0Stack_Size : constant Positive :=3D 129; > > in GNAT_spitbol.patterns. > > The program running time (single-core) dropped from > 47 seconds to 32 seconds. [...] > Last remark: someone with experience using the > spitbol routines might be able to optimize > further. =A0There are tricks using "anchors" > mentioned in spec of GNAT.spitbol.patterns. Oh, I think you just struck the right chord here, Jonathan. Georg has been harping abouf GNAT.Spitbol for a long time now :) Thanks for your interesting feedback; I have to use strict discipline not to get involved in those addictive benchmarks myself :) -- Ludovic Brenta.