[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inlining `scm_getc ()' and friends
From: |
Neil Jerram |
Subject: |
Re: Inlining `scm_getc ()' and friends |
Date: |
Tue, 15 Apr 2008 23:14:59 +0100 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) |
address@hidden (Ludovic Courtès) writes:
> Hello,
>
> Small I/O functions like `scm_getc ()' deserve to be inlined. For
> instance, Andy measured it some time ago:
>
> http://thread.gmane.org/gmane.lisp.guile.devel/6639
>
> I'm planning to apply the attached patch to both `master' and 1.8.
>
> To get an idea of its benefit, I run the attached "benchmark" (inspired
> from that in Guile-Reader) that does a lot of `read'. On my 1.2 GHz
> Intel Centrino, the inlining yields a 15% run-time improvement for that
> test.
>
> OK to apply?
Yes, all looks good to me.
Would it also make sense to commit the benchmark? We already have a
"benchmark-suite" directory.
Neil