>Hi Toninho,
>
>You can make some experiments with DEFAULT_GRANULARITY, f.e.:
> set C_USR=-DDEFAULT_GRANULARITY=0x100000
Hi Przemek thanks for your hint,
I see that the best value for windows vista is about 10000. Thinking
in this I made 3 functions to change this dlmalloc values without need
recompile harbour.
Where is the best place to save it?
---cut---
int mallopt( int parameter_number, int parameter_value );
#define M_TRIM_THRESHOLD (-1)
#define M_GRANULARITY (-2)
#define M_MMAP_THRESHOLD (-3)
HB_FUNC( MALLOCSETGRANULARITY )
{
mallopt( M_GRANULARITY, hb_parnl( 1 ) );
}
HB_FUNC( MALLOCSETTRIMTHRESHOLD )
{
mallopt( M_TRIM_THRESHOLD, hb_parnl( 1 ) );
}
HB_FUNC( MALLOCSETMMAPTHRESHOLD )
{
mallopt( M_MMAP_THRESHOLD, hb_parnl( 1 ) );
}
---cut---
Thanks and best regards,
Toninho.
__________________________________________________
Faça ligações para outros computadores com o novo Yahoo! Messenger
http://br.beta.messenger.yahoo.com/
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour