[Top][All Lists]

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

Re: Performance

From: Thien-Thi Nguyen
Subject: Re: Performance
Date: Sat, 19 Jun 2010 17:44:14 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

() Cecil Westerhof <address@hidden>
() Sat, 19 Jun 2010 17:05:50 +0200

       (main ("temp/input" "dummy.log" "^ +" "1234567890"))

To answer this, you can try the following experiment:

  $ cat > program <<EOF
  (define (main args) (write args) (newline) (exit #t))
  (main (command-line))
  $ guile -s program some args

Re performance, take a look at the lower-level procedures used to
implement the high-level ‘read-line’.  The lowest ones require an
explicit buffer to be passed in by the caller.  If you modify your
program to use these, you can control the timing and frequency of
that buffer's allocation, and thus improve the program's performance.


reply via email to

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