Are doubles faster than floats in C#?

前端 未结 10 844
[愿得一人]
[愿得一人] 2020-12-02 20:06

I\'m writing an application which reads large arrays of floats and performs some simple operations with them. I\'m using floats, because I thought it\'d be faster than doubl

10条回答
  •  一向
    一向 (楼主)
    2020-12-02 20:38

    Floats should be faster on a 32-bit system, but profile the code to make sure you're optimizing the right thing.

提交回复
热议问题