Code Red > .NET
Really a difference with float, int, double
nobody:
Is there much of a difference in speed for most applications between using float, int, double, etc anymore with the power of computers? I imagine to notice it someone would have to develop some incredible program. Am I wrong?
Atook:
I'm curious about performance too.
But really, from an interfacing with CAD perspective, it's best just to feed CAD the type it's expecting.
kdub_nz:
https://lmgtfy.com/?q=speed%20difference%20with%20float%2C%20int%2C%20double%2C%20decimal%20%20in%20C%23&s=g
kdub_nz:
... and this will probably be enough to give you bloodshot eyes.
http://nicolas.limare.net/pro/notes/2014/12/12_arit_speed/
dgorsman:
What scale are you looking at? Hundreds to thousands, probably no difference visible to the user. Hundreds of thousands to millions, larger value types will start to show a difference. Still, bad idea to get too complacent. No need to be uber optimized everywhere, but being aware makes for better, more efficient code overall.
Navigation
[0] Message Index
[#] Next page
Go to full version