Some of our W# projects take almost 20 seconds to compile.

The actual .NET assembly compiles fast but the W# part where it outputs "Compiling with WebSharper" later followed by "WebSharper: compiled ok in 16.86 seconds" which I believe is the JavaScript conversion... this part takes a long time.

I'm wondering if we are doing something wrong perhaps with the way we structure our code. Or perhaps there is a configuration problem somewhere. Ideally I'd like to get this down <5 seconds as I don't believe our projects are particularly large at all really.

We have observed this problem on both bare metal Windows machine and on Mac/Win10 Parallels.

Any ideas would be greatly appreciated.