Skip to content

Instantly share code, notes, and snippets.

@aspnetde
Last active April 6, 2021 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aspnetde/9edee214e31bd2df90c0943633cb0abe to your computer and use it in GitHub Desktop.
Save aspnetde/9edee214e31bd2df90c0943633cb0abe to your computer and use it in GitHub Desktop.
F# vs. C# Compile Times

This covers the build times of the core projects of https://github.com/aspnetde/IUBH.TOR:

Note that both cover the exact same functionality.

C#

Build 0, clean

0>------- Finished building project: IUBH.TOR. Succeeded: True. Errors: 0. Warnings: 0
Build completed in 00:00:08.144

Build 1, no change

Build with surface heuristics started at 09:21:41
Build completed in 00:00:00.002
Build succeeded at 09:21:41

Build 2, one line changed

0>------- Finished building project: IUBH.TOR. Succeeded: True. Errors: 0. Warnings: 0
Build completed in 00:00:04.702
Build succeeded at 09:22:34

F#

Build 0, clean

0>------- Finished building project: IUBH.TOR. Succeeded: True. Errors: 0. Warnings: 1
Build completed in 00:00:11.032
Build succeeded with warnings at 09:23:09

Build 1, no change

Build with surface heuristics started at 09:24:19
Build completed in 00:00:00.014
Build succeeded at 09:24:19

Build 2, one line changed

0>------- Finished building project: IUBH.TOR. Succeeded: True. Errors: 0. Warnings: 1
Build completed in 00:00:09.455
Build succeeded with warnings at 09:24:59
@aspnetde
Copy link
Author

aspnetde commented Apr 6, 2021

Compiling the F# core project with

<PropertyGroup>
  <OtherFlags>--sig:Signatures.fsi</OtherFlags>
</PropertyGroup>

results in a signature file that cannot be compiled:

image

image

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