in reply to Re: Perl + Hoard ?
in thread Perl + Hoard ?

I have an experience that perl's own memory allocator is pretty good.

I agree...except that, in its zeal to provide optimal performance, it makes some choices wrt threads that create add'l issues for sharing memory between threads, namely, the thread that malloc()'s something must be the thread to free() it (in order to avoid the overhead of heap locking). Presumably, Hoard avoids this (just how, I haven't yet fully researched).

Which led to my curiousity if anyone had used Hoard (with Perl or anything else), and to ponder if it might be a means to achieve the performance wo/ the threading restrictions.

Replies are listed 'Best First'.
Re^3: Perl + Hoard ?
by vkon (Curate) on Nov 28, 2006 at 01:47 UTC
    you're right WRT thread safety... but Perl's thread robustness will not increase with switchnig to threads-friendly memory allocator,
    because, AFAIU switching off Perl memory allocator (so returning to default configuration) will use OS memory manager, which is thread safe by definition.