[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: scm_gc_mark

From: Keisuke Nishida
Subject: Re: scm_gc_mark
Date: Wed, 31 Jan 2001 13:04:24 -0500
User-agent: Wanderlust/2.4.0 (Rio) SEMI/1.13.7 (Awazu) FLIM/1.13.2 (Kasanui) Emacs/21.0.96 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

At 31 Jan 2001 18:16:32 +0200,
Michael Livshin wrote:
> > #define scm_gc_mark(x) \
> >   do { if (SCM_NIMP (x)) scm_i_gc_mark (x); } while (0)
> could be faster, yes.  as with all things involving frequently and
> recursively called functions, a real improvement is not certain (it
> may sound paranoid, but I speak from (some) experience).
> if you benchmark and see an improvement, feel free to make this
> change.  be sure to benchmark with deeply nested data structures;
> cons-trees with deep nesting _both_ in the car and the cdr are best
> (and easiest to generate) for making scm_gc_mark() eat huge quantities
> of stack space.

Hmm, this won't make a significant difference anyway, so I don't
do that now.  I'll use this test explicitly in my vm and see the
difference some time.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]