Version Performance
Chris Smith
12/15/2022 9:03 PM
|
---|
Hi Wout &c,
We're looking at upgrading to a 6.0 version of CadLib next year. Ideally we'd go to the multi-platform versions but I remember you mentioned that the performance on .NET Standard wasn't as good as the Windows-specific versions?
I'm just wondering if you can spell out the differences between the newer versions with respect to performance / implementation? Here's my guess / assumptions, is this correct?
- CadLib 4, CadLib 5 (Windows), CadLib 6 (Windows) - I assume these use approx the same System.Drawing renderer?
- CadLib .NET Standard, CadLib 6.0 (Multi-Platform) - I assume these use either the System.Drawing compatibility package or the ImageSharp renderer you mentioned a while back?
Assuming the above is true, do you have any updated thoughts / metrics on the relative performance of the multi-platform renderer vs Windows-specific renderer?
Cheers,
Chris
|
Chris Smith
12/15/2022 9:36 PM
|
---|
Also, is it possible for us to somehow switch between 6.0 (Windows-specific) and 6.0 (Multi-platform) at build time depending on what output we're targeting? (maybe the license signing prevents this?)
I'd assume we'd have to have licenses for both to do that...
|
Wout
12/17/2022 12:29 AM
|
---|
Hi,
Yes, the windows versions of CadLib use System.Drawing (GDI+).
The multi-platform versions use the ImageSharp software rendering, and you can expect it to be a factor 5-10 slower is my guess.
For build time switching you'd need to have some #if blocks, because the rendering classes are different.
- Wout
|