chicken-hackers
[Top][All Lists]
Advanced

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

Re: [Chicken-hackers] [PATCH] perform immediateness checks inline before


From: Peter Bex
Subject: Re: [Chicken-hackers] [PATCH] perform immediateness checks inline before invoking mutation primitive
Date: Tue, 9 Oct 2012 21:22:58 +0200
User-agent: Mutt/1.4.2.3i

On Tue, Oct 09, 2012 at 05:03:13AM -0400, Felix wrote:
> The attached patch replaces the fundamental mutation primitive
> "C_mutate" with an inline-variant that does the immediateness check of
> the assignmend value at the call site (I hope). The old variant is
> still available for binary compatibility, but has been obsoleted.
> 
> I think this was originally suggested by Joerg Wittenberger.

Thanks, pushed.

I ran the chicken-benchmarks on it, and it turns out that especially
the first few benchmarks are a bit faster.  Other than that, there are
a few minor differences (compilation time seems to have gone up a bit).
The takr benchmark is almost twice as slow with this patch, though!
Could be a coincidence, because when run separately on the commandline
there's not much of a difference.

Cheers,
Peter
-- 
http://sjamaan.ath.cx
--
"The process of preparing programs for a digital computer
 is especially attractive, not only because it can be economically
 and scientifically rewarding, but also because it can be an aesthetic
 experience much like composing poetry or music."
                                                        -- Donald Knuth



reply via email to

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