[sldev] Optimization via _set_sbh_threshold

Nicholaz Beresford nicholaz at blueflash.cc
Tue Jun 12 17:41:02 PDT 2007


Hi!

I just added a

_set_sbh_threshold(1016);

near the top of WinMain and in one
situation it was like WOHAA! in others
I couldn't make out much difference.

But if someone has test procedures or
more experience with performance testing,
it may be worth some efforts.

I'll do a check tomorrow with counting
allocs of various sizes (categories) to
see if theory would back up usage of
this function.


Nick



Second Life from the inside out:
http://nicholaz-beresford.blogspot.com/


Nicholaz Beresford wrote:
> 
> Through a wild series of hops while researching
> some crash dumps I stumbled over
> 
> _set_sbh_threshold which seems to enable heap
> routines optimzed for many small allocations
> (just google for it).
> 
> Did anyone ever try this so far?  Given what I
> saw from my memory leak stuff, LL could be a nice
> candidate for that.
> 
> 
> Nick
> 
> 


More information about the SLDev mailing list