unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* state of Guile GC
@ 2007-09-17 19:05 Julian Graham
  2007-09-17 20:56 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Julian Graham @ 2007-09-17 19:05 UTC (permalink / raw)
  To: guile-user

Hi Guilers,

Disclaimer: I don't know very much about Guile's garbage collector,
technically or historically, except for what I've gleaned by some
cursory inspection of the code looking for (magical, undocumented)
performance tricks.

So I know I'm kind of blundering in here, but I'm having some trouble
and don't really know what to do.  Specifically, I've got some
performance-sensitive (i.e., user-interactive) C code that uses Guile
for making calls to some Scheme libraries I've written, and those
calls are taking a prohibitively long time to complete.  Most of the
time, it takes <10ms (avg. 4ms) to complete, but when there's a GC (as
observed by doing logging in a GC "before" hook), the call can take
upwards of 100ms.

I realize that a lot of this has to do with the allocation profile of
my Scheme code, and I'm working on profiling it; I also know the GC's
supposed to be pretty transparent to the libguile user; nonetheless,
I'm hoping some Guile developers (Ludovic?) or some developers that
use Guile for interactive applications (Han-Wen?) could clear up a few
things for me:

* In 1.8, you guys removed scm_block_gc, and the comments in the
Changelog seem to indicate that this was a requirement because of the
way the redesigned GC interleaves itself with "Guile mode" C code.
Would it really be impossible to re-add some way of (temporarily)
disabling GC?

* Any suggestions from application authors on how to control the
behavior of the GC from C?  dsmith on #guile suggested that there
might be a way to trick Guile into thinking a GC wasn't necessary by
flubbing the GC stats somehow, but I couldn't figure out a way to do
that that looks portable.

* Out of curiosity, what are the technical / theoretical constraints
that make Guile's GC perform the way it does?  There are other
garbage-collected languages with (what I would imagine are) much
heavier allocation footprints (C#, Java) that seem to have much faster
GC.  (P'raps they collect in a separate thread?)  Do other Schemes do
things differently?

* What's the state of porting Guile to use Boehm GC?  I was following
Ludovic's research into it but things kind of trailed off about a year
ago when he posted some rather unhappy performance information.


Thanks a lot,
Julian


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


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

end of thread, other threads:[~2007-09-18 20:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-17 19:05 state of Guile GC Julian Graham
2007-09-17 20:56 ` Ludovic Courtès
     [not found]   ` <2bc5f8210709171833va72387bx7851d48da6f7e8d5@mail.gmail.com>
2007-09-18 20:50     ` Julian Graham

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).