unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@chbouib.org (Ludovic Courtès)
Subject: Re: Guile + Boehm GC: First Remarks
Date: Sun, 26 Nov 2006 19:48:20 +0100	[thread overview]
Message-ID: <87y7pyvybv.fsf@chbouib.org> (raw)
In-Reply-To: 45363D73.80204@xs4all.nl

Hi,

I'm finally getting back to this (sorry for the delay!).

Han-Wen Nienhuys <hanwen@xs4all.nl> writes:

> I've patched it a bit to use GC_typed alloc for tagged data. It
> probably doesn't make much of a difference, since 90% of the data is
> regular cells, but see
> http://www.xs4all.nl/~hanwen/public/software/guile-bgc.patch
>
> With the tree benchmark (included in patch, I get 54 secs (Guile 1.8)
> vs. 1:25 (typed BGC). I forgot to measure regular BGC, though.

Thanks for the patch.  I tried it out but it doesn't apparently yield
any performance improvement (see below).

> Note that BGC has ALL_INTERIOR_POINTERS switched on by default
> nowadays, which means that it may scan too much. You could try
> switching that off.

Good idea.  I tried this (patch available in my Arch branch) and it does
indeed yield a slight improvement.  Here's the summary of the various
performance measurements, each time running the whole `gcbench.scm' that
you provided:

  * Guile 1.8					52 sec. (+0%)

  * GBGC w/ tagged allocs			1"27 (+40%)

  * GBGC w/o tagged allocs			1"18 (+33%)

  * GBGC + no interior pointers			1"13 (+29%)

  * GBGC + no interior ptrs + `GC_expand_hp'	1"13 (+29%)

In the last case, `GC_expand_hp ()' is systematically used to increase
the initial heap size at startup time; this may have a positive impact
on short-lived programs, but doesn't have any impact here,
understandably.

I guess we need other bright ideas.  ;-)

Thanks,
Ludovic.



_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


  reply	other threads:[~2006-11-26 18:48 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-31  8:49 Guile + Boehm GC: First Remarks Ludovic Courtès
2006-05-31 20:11 ` Neil Jerram
2006-06-01  1:17   ` Han-Wen Nienhuys
2006-06-01  7:22     ` Ludovic Courtès
2006-06-01  7:35       ` Mikael Djurfeldt
2006-06-01  8:28         ` Ludovic Courtès
2006-06-01  8:50           ` Mikael Djurfeldt
2006-06-01  9:42             ` Ludovic Courtès
2006-06-01 12:04               ` Ludovic Courtès
2006-06-04 22:24         ` Han-Wen Nienhuys
2006-06-02  0:01     ` Neil Jerram
2006-06-02  8:06       ` Mikael Djurfeldt
2006-06-01  7:55   ` Ludovic Courtès
2006-06-02  0:07     ` Neil Jerram
2006-06-02 12:41       ` Ludovic Courtès
2006-10-15  0:04         ` Han-Wen Nienhuys
2006-10-16  7:46           ` Ludovic Courtès
2006-10-18 11:21             ` Han-Wen Nienhuys
2006-10-19 14:25               ` Ludovic Courtès
2006-10-25 18:47                 ` Neil Jerram
2006-10-18 11:34             ` Han-Wen Nienhuys
2006-10-19 14:28               ` Ludovic Courtès
2006-10-18 14:42             ` Han-Wen Nienhuys
2006-11-26 18:48               ` Ludovic Courtès [this message]
2006-10-18 14:59             ` Han-Wen Nienhuys
2006-10-18 15:42             ` Han-Wen Nienhuys
2006-10-18 16:10             ` Han-Wen Nienhuys
2006-10-18 16:53             ` Han-Wen Nienhuys
2006-06-01  1:10 ` Han-Wen Nienhuys
2006-06-01  8:09   ` Ludovic Courtès
2006-06-18 18:00 ` Clinton Ebadi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y7pyvybv.fsf@chbouib.org \
    --to=ludo@chbouib.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).