From: Stephen Leake <stephen_leake@stephe-leake.org>
Subject: Re: Performance of records with variant parts
Date: Fri, 26 Mar 2021 08:38:16 -0700 [thread overview]
Message-ID: <86h7kyapsn.fsf@stephe-leake.org> (raw)
In-Reply-To: s3dtgn$r48$1@dont-email.me
"Jeffrey R. Carter" <spam.jrcarter.not@spam.not.acm.org> writes:
> On 3/24/21 12:00 AM, John Perry wrote:
>> | if denom <= 0.0 then
>> | [constraint_error when
>> | objects__thing_typeD3 (obj.kind)
>> | "discriminant check failed"]
>> | [constraint_error when
>> | objects__thing_typeD3 (obj.kind)
>> | "discriminant check failed"]
>> | return (vectors__vector_dot (obj.norm, ray.start) +
>> | obj.offset) / (-denom);
>> Am I right in thinking this is a bug? It shouldn't even check it,
>> let alone check it twice.
As a workaround, you can suppress checks in that block of code:
pragma Suppress (Discriminant_Check);
--
-- Stephe
next prev parent reply other threads:[~2021-03-26 15:38 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-22 17:02 Performance of records with variant parts John Perry
2021-03-22 17:32 ` Jeffrey R. Carter
2021-03-22 17:49 ` John Perry
2021-03-22 17:54 ` John Perry
2021-03-22 19:31 ` Jeffrey R. Carter
2021-03-22 22:11 ` John Perry
2021-03-23 9:31 ` Jeffrey R. Carter
2021-03-23 14:27 ` Simon Wright
2021-03-23 23:00 ` John Perry
2021-03-23 23:27 ` Jeffrey R. Carter
2021-03-26 15:38 ` Stephen Leake [this message]
2021-03-26 15:44 ` John Perry
2021-03-30 7:12 ` Emmanuel Briot
2021-04-01 0:03 ` John Perry
2021-04-01 6:45 ` Emmanuel Briot
2021-04-01 13:38 ` Niklas Holsti
2021-04-02 16:07 ` John Perry
2021-03-22 17:39 ` Dmitry A. Kazakov
2021-03-22 17:45 ` John Perry
2021-03-22 18:07 ` Dmitry A. Kazakov
2021-03-22 18:23 ` John Perry
2021-03-22 20:30 ` Dmitry A. Kazakov
2021-03-22 18:59 ` Niklas Holsti
2021-03-22 21:54 ` John Perry
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox