On Sat, Oct 04, 2008 at 02:05:02PM +0000, Marcus Comstedt (ACROSS) (Hail Ilpalazzo!) @ Pike (-) developers forum wrote: > Integers which can fit in an INT_TYPE are stored as such, not as > bignums.
yes, but there is a difference between signed and unsigned int. an integer larger than 2147483648 and smaller than 4294967296 does not fit into INT_TYPE but it would very well fit into an unsigned int type. if pike handles an array of a few thousand of these the use of bignum vs unsigned int type could make a difference. > (In strings smaller integer types are used as appropriate, > because there it actually saves memory.) right, i was thinking of something like array(int(0..255)) because this could be saved as a string. greetings, martin. -- cooperative communication with sTeam - caudium, pike, roxen and unix offering: programming, training and administration - anywhere in the world -- pike programmer working in china community.gotpike.org unix system- iaeste.(tuwien.ac|or).at open-steam.org administrator caudium.org is.schon.org Martin Bähr http://www.iaeste.or.at/~mbaehr/
