From: "Luke A. Guest" <laguest@archeia.com>
Subject: Re: Not good for Ada endorsement
Date: Thu, 8 Jul 2021 09:52:19 +0100 [thread overview]
Message-ID: <sc6ecm$g7a$1@gioia.aioe.org> (raw)
In-Reply-To: sc6cgh$9vu$1@dont-email.me
On 08/07/2021 09:20, Jeffrey R. Carter wrote:
> On 7/8/21 5:46 AM, Richard Iswara wrote:
>> Indirectly it is a comparison of implementation and tools
>> benchmarking. Looking at the gpr file, there is no compile switch
>> used, not even an "-o2" switch.
I did wonder about that as I haven't got around to looking through it yet.
> Compiling with -gnatp -O3 would undoubtedly speed it up (suppressing
> checks is justified since execution with checks active shows that no
> checks fail).
I got nothing from the output of trying to run just the Ada version.
> Looking casually at the code, the map could be replaced by a constant,
> as Sieve_Size is hard coded to 1,000,000, and the filling of the map is
> included in the timing. The calculation of the square root of 1,000,000
> could be replaced by a constant. The array of Boolean could be
> constrained to 3 .. Sieve_Size. The function that simply returns (others
> => True) could be replaced by the aggregate, though optimization will
> probably do that. Long_Long_Integer could be replaced by a type with
> range 0 .. 2 ** 31 - 1, though I don't know if that would have any
In the video he mentions Pascal's version only being 32 bit and his is 64.
next prev parent reply other threads:[~2021-07-08 8:52 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-07 14:21 Not good for Ada endorsement Richard Iswara
2021-07-07 15:06 ` Luke A. Guest
2021-07-07 15:19 ` Doctor Who
2021-07-07 19:21 ` Simon Wright
2021-07-07 19:49 ` Doctor Who
2021-07-07 20:39 ` Luke A. Guest
2021-07-08 3:46 ` Richard Iswara
2021-07-08 8:20 ` Jeffrey R. Carter
2021-07-08 8:42 ` Dmitry A. Kazakov
2021-07-08 8:52 ` Luke A. Guest [this message]
2021-07-08 10:42 ` Jeffrey R. Carter
2021-07-08 10:51 ` Luke A. Guest
2021-07-08 11:12 ` Jeffrey R. Carter
2021-07-08 17:37 ` Luke A. Guest
2021-07-08 17:43 ` Luke A. Guest
2021-07-08 19:16 ` Luke A. Guest
2021-07-08 19:16 ` Luke A. Guest
2021-07-09 2:47 ` Richard Iswara
2021-07-09 8:10 ` Paul Rubin
2021-07-09 8:24 ` Egil H H
2021-07-09 8:33 ` Egil H H
2021-07-09 9:16 ` Jeffrey R. Carter
2021-07-09 9:21 ` Jeffrey R. Carter
2021-07-15 15:13 ` Lucretia
2021-07-15 15:56 ` Jeffrey R. Carter
2021-07-15 16:29 ` Anh Vo
2021-07-15 17:30 ` Lucretia
2021-07-16 16:27 ` Simon Wright
2021-07-16 16:28 ` Simon Wright
2021-07-23 17:55 ` Luke A. Guest
2021-07-23 17:04 ` Anh Vo
2021-07-23 17:12 ` Luke A. Guest
2021-07-15 16:29 ` Lucretia
2021-07-15 16:49 ` Dmitry A. Kazakov
2021-07-15 21:08 ` Jeffrey R. Carter
2021-07-11 15:54 ` Dennis Lee Bieber
2021-07-18 23:03 ` Mace Ayres
2021-07-19 1:00 ` Paul Rubin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox