r/csharp•
LorrMaster

Options for dealing with Denormalized Floats in High Performance Code?

Help

So I was running a simple performance test that was mainly centered around a few lines of code when I noticed that commenting out a single line of code would result in performance more than halving for seemingly no reason. After a couple days of research the culprit seems to have been caused by a large numbers of operations with denormalized floating-point values. I'm curious what methods are typically employed to handle / avoid these cases? For my project speed is more important than precision.

Posted Jun 7, 2024, 8:34 PM UTC

711

Comments aren't archived yet

This post had 11 comments on Reddit. Comments for this period haven't been loaded into the archive yet.