Skip to content

Conversation

@psfinaki
Copy link
Contributor

@psfinaki psfinaki commented Jun 28, 2024

The design for #17260.

@github-actions
Copy link
Contributor

github-actions bot commented Jun 28, 2024

✅ No release notes required

@auduchinok
Copy link
Member

auduchinok commented Jul 24, 2024

@psfinaki Thanks for starting this initiative, this may noticeably improve things!

I can add two things to consider:

  • Reusing type check info when non-F# projects are referenced

    Rider and Visual Studio both produce in-memory metadata for referenced C#/VB.NET projects. The approaches are different, but some of the issues should be similar.
    FCS uses in-memory metadata timestamp which depends on the project files, while fsc uses project output assembly timestamp. These two timestamps are likely to differ the most of the time, which would prevent us from reusing cached type check data for referencing F# projects. It would be nice if we found a way to reuse type check info when non-F# projects are referenced.

  • Different conditional compilation between FCS in Rider and fsc

    We use --noconditionalerasure flag to properly analyze erased symbols in the tooling. When type check caches are reused we should not have such difference between typed trees. I propose we change the erasure logic here: we should always keep these symbols in the typed trees and erase them later during IL generation instead.

@psfinaki psfinaki changed the title [WIP] Design doc on reusing typecheck results Design doc on reusing typecheck results Aug 27, 2024
@psfinaki psfinaki marked this pull request as ready for review August 27, 2024 12:31
@psfinaki psfinaki requested a review from a team as a code owner August 27, 2024 12:31
@psfinaki psfinaki merged commit f0f6c65 into dotnet:main Dec 12, 2024
4 checks passed
@psfinaki psfinaki deleted the reuse-typecheck branch February 10, 2025 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

7 participants