From: John Perry <john.perry@usm.edu>
Subject: Re: Performance of records with variant parts
Date: Fri, 2 Apr 2021 09:07:19 -0700 (PDT) [thread overview]
Message-ID: <92cd977d-f848-4619-9ff8-e0d5fdaa76dan@googlegroups.com> (raw)
In-Reply-To: <icm0n6F6b3pU1@mid.individual.net>
On Thursday, April 1, 2021 at 8:38:49 AM UTC-5, Niklas Holsti wrote:
> I assume by "X is variant" you mean that X has a variant_part (RM 3.8.1(2)).
>
> If the discriminant of Thing_Type has a default value, Intersection_Type
> can have a Thing_Type component without supplying it with a discriminant
> value, and Intersection_Type need not have discriminants nor a variant part.
You're right. Originally Thing_Type didn't have a default value. Later I added one, but I didn't think to change Intersection_Type.
Either way, the discriminant on Intersection_Type was the problem. Once I modify Intersection_Type so that it is no longer variant, Intersections can return an Intersection_Type that contains a Thing_Type without the performance hit it had when Intersection_Type was variant.
next prev parent reply other threads:[~2021-04-02 16:07 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
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 [this message]
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