SharpVk icon indicating copy to clipboard operation
SharpVk copied to clipboard

Slow compile times

Open HildarTheDorf opened this issue 4 years ago • 3 comments

I'm experiencing slow compile times when using SharpVk (v0.4.2). The compiler appears to consuming copious amounts of RAM such that it spills swap/pagefile on Hello Triangle, which I don't normally experience with considerably larger solutions.

My assumption is that the compiler is struggling to handle the sheer number of optional parameters most SharpVk methods take. Would it be possible for the generator to emit overloads with less parameters for the more common use cases (e.g. for each method have an overload with no, or core-only, pNext structures and another with all the sundry extension structs)?

HildarTheDorf avatar Mar 17 '20 14:03 HildarTheDorf

Interesting; I hadn't seen that but I'll certainly investigate. What OS, IDE & framework version are you using?

FacticiusVir avatar Mar 17 '20 14:03 FacticiusVir

This is with Ubuntu 19.10/VS Code(Microsoft C# extension)/Dotnet Core 3.1.101

HildarTheDorf avatar Mar 17 '20 15:03 HildarTheDorf

Thanks; I'll run some tests and see if I can replicate the compile issues

FacticiusVir avatar Mar 17 '20 16:03 FacticiusVir