Skip to content

perf(Core): Make 'FuncApp' a struct active pattern - #875

Open
Numpsy wants to merge 1 commit into
fsprojects:masterfrom
Numpsy:struct_pattern
Open

perf(Core): Make 'FuncApp' a struct active pattern#875
Numpsy wants to merge 1 commit into
fsprojects:masterfrom
Numpsy:struct_pattern

Conversation

@Numpsy

@Numpsy Numpsy commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Gives a small reduction in the number of allocated Options.

Before:

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
LintParsedFile 815.3 ms 4.49 ms 3.98 ms 14000.0000 5000.0000 1000.0000 229.87 MB

After:

Method Mean Error StdDev Gen0 Gen1 Gen2 Allocated
LintParsedFile 811.2 ms 7.26 ms 6.44 ms 14000.0000 5000.0000 1000.0000 228.83 MB

Gives a small reduction in the number of allocated
Options.

Before:

| Method         | Mean     | Error   | StdDev  | Gen0       | Gen1      | Gen2      | Allocated |
|--------------- |---------:|--------:|--------:|-----------:|----------:|----------:|----------:|
| LintParsedFile | 815.3 ms | 4.49 ms | 3.98 ms | 14000.0000 | 5000.0000 | 1000.0000 | 229.87 MB |

After:

| Method         | Mean     | Error   | StdDev  | Gen0       | Gen1      | Gen2      | Allocated |
|--------------- |---------:|--------:|--------:|-----------:|----------:|----------:|----------:|
| LintParsedFile | 811.2 ms | 7.26 ms | 6.44 ms | 14000.0000 | 5000.0000 | 1000.0000 | 228.83 MB |
@Numpsy

Numpsy commented Jul 26, 2026

Copy link
Copy Markdown
Contributor Author

Just another small thought after looking at profiling results again

image

The change is small, but it's a small change too.
(Possibly the same change could be made elsewhere if this is considered ok)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant