HashBits, a lazy way

John M McIntosh johnmci at mac.com
Tue Jul 15 19:30:48 UTC 2003


> As a result I wrote a test procedure to check the old versus new   
> allocation routines which iterates over all 393,216 combinations of  
> the class type (2 bits in the hash field, 5 bits of compact class  
> index, 4 bits of object format, 6 bits of object size) with an  
> additional range  0-4 bytes for indexable size, plus of course a bit  
> of fiddling to ensure object size never is zero.

Oops it's actually 458,751 iterations plus a change to -5 indexable  
size to capture the mod 4 calculation.
This works just fine.  The overnight testing worked great too, so I'll  
post the change set and performance numbers in a bit.

--
======================================================================== 
===
John M. McIntosh <johnmci at smalltalkconsulting.com> 1-800-477-2659
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
======================================================================== 
===



More information about the Squeak-dev mailing list