[sldev] Optimization via _set_sbh_threshold

Nicholaz Beresford nicholaz at blueflash.cc
Wed Jun 13 02:20:30 PDT 2007


Dirk,

> the small block heap is disabled as of win 2000 because of rewrites
> that started in 1999.
> See here: http://msdn2.microsoft.com/en-us/library/ms810466.aspx. It
> supposedly doesn't work in 64-bit mode either (not a big issue in SL
> for now).

Are you sure about that?  To me it seems to be a runtime library thing,
that was disabled with VS2003 (sbb_threshold starts with zero there) and
I'll be damned if that first result was coincidence or wishful thingking.

I just counted allocs during a session and 2.9 million of 3.0 million
allocs were 512 byes or less (with two of three million being 32 byes
or less).


Nick


More information about the SLDev mailing list