Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42650

Which is a "faster" variable type?

$
0
0
BYTE or LONG? I know that I've heard that since Windows natively uses 32bits or something about memory natively being divided into 32bit blocks, that the LONG data type is the fastest data type in VB6. However I would tend to think that the smaller the chunk, the faster the access, so that a BYTE type variable would be faster. I know BYTE type variables are smaller and so need less RAM to store them or less harddrive space to save them to disk, but is it a good idea to use BYTE type variables in intensive processing algorithms (like for image processing)? Or would a LONG be faster for this? Can someone please clear this up for me?

Viewing all articles
Browse latest Browse all 42650

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>