Skip to content

Value Types

July 14, 2009
tags: , , ,

I got the books for the MCPD and have started studying and have found a couple interesting facts that I’m sure I should have known but thought I would share a little.

Of the numeric types, I always assumed you should use the smallest type that fit your usage. If you needed numbers 1-100 you could easily use a tinyint, etc. Turns out that since the compiler is optimized for 32-bit, ‘Integer’ is the most efficient type. If you are trying to squeeze every last bit of memory out of the application, fine, but for most apps, Integer will be better performance than any other numeric type.

Advertisements
No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: