unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludovic.courtes@laas.fr (Ludovic Courtès)
Cc: guile-devel@gnu.org
Subject: Re: [PATCH] experimental lookupcar based coverage testing.
Date: Fri, 19 Jan 2007 17:05:32 +0100	[thread overview]
Message-ID: <87lkjzypbn.fsf@laas.fr> (raw)
In-Reply-To: <45B0CC62.7020705@xs4all.nl> (Han-Wen Nienhuys's message of "Fri,  19 Jan 2007 14:49:22 +0100")

Hi,

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

> I have doubts whether this can ever be good enough. For effective
> coverage analysis, you have a to run an entire test-suite with
> coverage enabled.  Eg. for lilypond, the entire test-suite takes 5
> minutes on a 1.6ghz Core duo (single thread), when running
> normally. That is a lot of Scheme code, and if for every frame-enter
> or apply, a piece of user code is called, that will be an enormous
> slowdown.

Yes, that would still be a significant slowdown.

What I meant is that there are roughly two approaches that can be taken
to tackle such issues: (i) extend the C code base in ad hoc ways that
allow the reduction of performance penalties in the specific use case
that is addressed, and (ii) keep the C code base to a bare minimum but
fast enough that specific mechanisms can be implemented atop, in Scheme.
I agree that Guile has always favored the first approach, but I think it
has a number of drawbacks in the long term (e.g., code complexity, lack
of flexibility and hackability).

> The real problem is not setting up the trap for calling, but rather 
> the fact that it 
>
>  - is called for every evaluation (for coverage, it needs to be done
> only once)

Right.

> Of course, the patch that I posted is ad-hoc, because it hardcodes the
> coverage analysis in eval.c.  If it were to be included, I propose
> something like
>
>  (trap-set! 'memoize-symbol
>             record-coverage)
>  (trap-enable 'memoize-symbol)
>
> which would be possible with a generic, and quite minimal extension to
> eval.

Indeed, this looks less specific and more flexible.  I'd personally
prefer this approach.

Thanks,
Ludovic.


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


  reply	other threads:[~2007-01-19 16:05 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-18 19:48 [PATCH] experimental lookupcar based coverage testing Han-Wen Nienhuys
2007-01-18 23:50 ` Kevin Ryde
2007-01-19 10:40   ` Han-Wen Nienhuys
2007-01-23  0:50     ` Kevin Ryde
2007-01-19 12:56 ` Han-Wen Nienhuys
2007-01-19 13:09 ` Ludovic Courtès
2007-01-19 13:49   ` Han-Wen Nienhuys
2007-01-19 16:05     ` Ludovic Courtès [this message]
2007-01-19 20:14       ` Han-Wen Nienhuys
2007-01-20 15:01         ` Ludovic Courtès
2007-01-22 14:49           ` Han-Wen Nienhuys
2007-01-22 15:39             ` Ludovic Courtès

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=87lkjzypbn.fsf@laas.fr \
    --to=ludovic.courtes@laas.fr \
    --cc=guile-devel@gnu.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).