[Mono-devel-list] GC/Memory allocation performance

Michal Moskal malekith at pld-linux.org
Sat May 31 16:23:17 EDT 2003


On Fri, May 30, 2003 at 03:08:12PM +0200, Varga Zoltan wrote:
> 
>                                                 Hi,
> 
>    The current allocation path is not very optimized under
> mono. It
> involves the following:
> - A call to the icall wrapper for mono_object_new_specific.
> - A call to mono_object_new_specific
> - A call to mono_object_new_alloc_specific
> - A call to GC_MALLOC

Last time I used libgc, calling gc_malloc_many() instead of GC_MALLOC()
several times for few commonly used object sizes gave considarable
speedup. This was for functional language allocating lots of small
objects.

-- 
: Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv
: PLD Linux ::::::::: Wroclaw University, CS Dept : {E-,w}-- {b++,e}>+++ h




More information about the Mono-devel-list mailing list