unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* gc_inline.h
@ 2013-11-22  9:09 Andy Wingo
  2014-03-24 22:01 ` gc_inline.h Andy Wingo
  0 siblings, 1 reply; 2+ messages in thread
From: Andy Wingo @ 2013-11-22  9:09 UTC (permalink / raw)
  To: guile-devel

It seems that the BDW GC, since version 7 or so, supports inline
allocation with thread-local freelists.  See gc_inline.h.  We can
probably improve our allocation speed significantly by using this
allocator in Guile.  It would require adding a freelist to scm_i_thread,
and passing the thread around wherever we would want inline allocation,
but that is already the case in the VM.

Could be a neat little project for someone -- mostly on master, where we
require BDW-GC 7.2.

Cheers,

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gc_inline.h
  2013-11-22  9:09 gc_inline.h Andy Wingo
@ 2014-03-24 22:01 ` Andy Wingo
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Wingo @ 2014-03-24 22:01 UTC (permalink / raw)
  To: guile-devel

On Fri 22 Nov 2013 10:09, Andy Wingo <wingo@pobox.com> writes:

> It seems that the BDW GC, since version 7 or so, supports inline
> allocation with thread-local freelists.  See gc_inline.h.  We can
> probably improve our allocation speed significantly by using this
> allocator in Guile.  It would require adding a freelist to scm_i_thread,
> and passing the thread around wherever we would want inline allocation,
> but that is already the case in the VM.
>
> Could be a neat little project for someone -- mostly on master, where we
> require BDW-GC 7.2.

Not sure if I mentioned this, but I did this on master.  It's a minor
speed boost, just a few percent -- mostly because we avoid TLS lookups
to get the thread-local freelist within GC_malloc() and friends.  If we
passed the scm_i_thread* pointer to some new kind of gsubr, then
primitives could also do this; future work.

Andy
-- 
http://wingolog.org/



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-24 22:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-22  9:09 gc_inline.h Andy Wingo
2014-03-24 22:01 ` gc_inline.h Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).