Subject: Re: spring cleaning step #1

Re: spring cleaning step #1

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sat, 17 Apr 2010 16:46:35 +0200 (CEST)

On Sat, 17 Apr 2010, Alexander Lamaison wrote:

>> 'int' - for variables that are just counters and generic values that are not
>> likely to be extremely large (ie they will always be less than 2 billion).
>
> My question relates to this change. Why is int better than unsigned long?

Because 'int' is defined to be the "natural" data size for the architecture.
Thus it is generally faster and make better generated code than forcing it to
be another type.

-- 
  / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2010-04-17