Re:Classes vs. Structs in .NET. How not to teach about perfo...
by ttymck on Saturday November 04, 2023 @04:18PM
(#38144729)
Wouldn't it be _more_ informative to see a "realworld" project, possibly built using LINQ, and the performance comparison done within the context of that project?
[ Parent
| on HN ]
Re:Classes vs. Structs in .NET. How not to teach about perfo...
by starburst on Saturday November 04, 2023 @04:27PM
(#38144804)
If what you want to measure is LINQ performance, sure, but in the context of measuring the language fundamental like class versus struct, it is an unnecessary overhead.
The article itself says it:
> However, the main reason why the benchmarks are not correct is because of LINQ and lazy evaluation.