Changeset 255 for trunk/thune/array.c
- Timestamp:
- 08/23/06 20:57:06 (2 years ago)
- Files:
-
- 1 modified
-
trunk/thune/array.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/array.c
r167 r255 78 78 if( count < elemCount ) 79 79 { 80 count = (elemCount < 8) ? 8 : elemCount; 80 /* Using a minimum size of 4 rather than 8 results in ~10% less 81 wasted memory. Using 2 results in ~13% less. 82 Waste seems to run 100%-150% of used memory. 83 */ 84 if( elemSize >= 16 ) 85 count = (elemCount < 4) ? 4 : elemCount; 86 else 87 count = (elemCount < 8) ? 8 : elemCount; 81 88 } 82 89
