boolean sequence
- Posted by Tone Škoda <tskoda at email.si> Sep 02, 2004
- 501 views
in C++ if you have an array of 100 boolean (0 or 1) values it will take only 100 bits (the C++ "bitset" class exists), in euphoria same array will take 32*100bits, 32x more memory. so if you have very large array, there is big difference between 1 MB and 32 MB. 1 MB will quickly allocate, 32 MB will take long to allocate. does in euphoria exist any such library? similar library could exist for array with char types (8bit) (0-255 numbers), and array with short types (16bit) (0 to 65,535 numbers). i want such library to save memory and also maybe speed.