This blog is no longer updated please visit http://www.createdbyx.com/ instead.

Saturday, June 18, 2005

Came across something interesting...

Now that I am using two computers (laptop and desktop) I find myself needing to sync file between both computers. So I was using VBExpress beta2 to create a fily sync utility for my self when I stumbled across this little tidbit under the Widbey documentation.
--------------
Most Efficient Data Types
For variables that never contain fractions, the integral data types are more efficient than the nonintegral types. In Visual Basic, Integer and UInteger are the most efficient numeric types.

For fractional numbers, Double is the most efficient data type, because the processors on current platforms perform floating-point operations in double precision. However, operations with Double are not as fast as with the integral types such as Integer.

-------------------

This is interesting to me because I am a directx programmer and as any managed directx programmer knows is that all the data types and classes etc in the managed directx sdk use the Single data type, not the Double data type!!! Mabe someone should contact Tom miller about this??

Efficient Use of Data Types