unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: Cecil Westerhof <Cecil@decebal.nl>
Cc: guile-user@gnu.org
Subject: Re: Performance
Date: Sat, 19 Jun 2010 17:44:14 +0200	[thread overview]
Message-ID: <87r5k3do35.fsf@ambire.localdomain> (raw)
In-Reply-To: <87r5k3qcz5.fsf@linux-lqcw.site> (Cecil Westerhof's message of "Sat, 19 Jun 2010 17:05:50 +0200")

() Cecil Westerhof <Cecil@decebal.nl>
() 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))
  EOF
  $ 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.

thi



  reply	other threads:[~2010-06-19 15:44 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-18 20:50 Performance Cecil Westerhof
2010-06-19  9:16 ` Performance Andy Wingo
2010-06-19 15:05   ` Performance Cecil Westerhof
2010-06-19 15:44     ` Thien-Thi Nguyen [this message]
2010-06-21  9:41       ` Performance Cecil Westerhof
2010-06-19 18:16     ` Performance Andy Wingo
2010-06-21  9:48       ` Performance Cecil Westerhof
2010-06-21 19:34         ` Performance Andy Wingo
2010-06-21 20:34           ` Performance Decebal
2010-06-22 11:33           ` Binary packages of Guile development snapshots? (was Re: Performance) Štěpán Němec
2010-06-22 19:04             ` Binary packages of Guile development snapshots? Andy Wingo

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=87r5k3do35.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --cc=Cecil@decebal.nl \
    --cc=guile-user@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).