Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

What is the fastest datatype

Name: Anonymous 2010-07-11 11:58

byte, int, double, float? Considering modern consumer PC.

Name: Anonymous 2010-07-11 16:17

>>10
Faggot quotes aside, the spec indicates that it's up to the implementation to determine what a "fast" type is. I don't know why they did this, it's pretty retarded.

On the other hand, I've done performance tests over very large numbers of loops for both signed and unsigned variables of all sizes. As it turns out, short and long long take a lot more time to assign values than int or char. Granted, I used Visual Studio 2008 and an x86 platform, but it makes sense because the datatypes I mentioned tend to be optimized.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List