Uh oh!
There was an error while loading. Please reload this page.
Optimize attribute checking - #16036
Conversation
kerams
commented
Sep 24, 2023
I also wonder whether |
smoothdeveloper
commented
Sep 24, 2023
@kerams, wondering if we could also optimize which lookup to try first, if the text already ends with Attribute, 99.99% of cases it would be better to try the one without appending it. I can only see weird stuff like |
That would give a different meaning to the program if you have |
smoothdeveloper
commented
Sep 24, 2023
@kerams, ok makes sense and it is a bit sad edge case :( I'm wondering if TcTypeMeasureApp is equivalent to your TcTypeApp? does it still type check measures annotated values passed to an attribute? openFSharp.Data.UnitSystems.SI.UnitNamestypeAttAttribute(a: int<second>)=inherit System.Attribute()[<Att(1)>]typeFoo()=memberx.X=1 |
vzarytovskii
commented
Sep 24, 2023
This will have to wait unfortunately, net8 is now only open for fixes. |
vzarytovskii
commented
Oct 3, 2023
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
TcTypeAndRecoverwould redoResolveTypeLongIdent, so we bypass duplicate work and skip directly toTcTypeApp. This has the additional benefit that we no longer capture 2Item.Typesname resolutions for each attribute (one withItemOccurence.UseInAttributeand the otherItemOccurence.UseInType) but only the first one.