dotnet / dotnet/fsharp

Building a large F# project is indeterminately slow

Open
#19,132 3 comments 1 reaction 1 assignee Assigned to @Copilot View on GitHub
Bug Theme-Performance
Dominant language
F#
Stars
4.3k
Forks
876
Avg merge
4d 22h
Merged PRs (30d)
144

Description

I've created a very simple F# project with 10'000 modules: https://github.com/ners/fsharp-10k

Running `dotnet build` in this project appears to never complete; I killed the process after 10 minutes after it had consumed most of my RAM.

**Repro steps**

- Check out https://github.com/ners/fsharp-10k
- Run `dotnet build`

**Expected behavior**

The build completes in a reasonable amount of time, e.g. 10 minutes.

Ideally the progress of the build is reported to the CLI, e.g.: `[123/1000]`

**Actual behavior**

The build takes an indeterminate amount of time.

**Related information**

I have a reasonably powerful setup (Ryzen 9950X) running Linux and using .NET 10.0.100. I also tested with 8.0.416, where the result was the same.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.