zsh-workers
 help / color / mirror / code / Atom feed
From: Zefram <A.Main@dcs.warwick.ac.uk>
To: suzuki@otsl.oki.co.jp (SUZUKI Hisao)
Cc: zsh-workers@math.gatech.edu
Subject: Re: zsh-3.0-pre1: speed up the "list-choices" etc.
Date: Mon, 8 Jul 1996 08:30:54 +0100 (BST)	[thread overview]
Message-ID: <28128.199607080730@stone.dcs.warwick.ac.uk> (raw)
In-Reply-To: <9607080038.AA01466@oz.fantasy.otsl.oki.co.jp> from "SUZUKI Hisao" at Jul 8, 96 09:38:47 am

>     Certainly it is mainly because of the terminal and its
>device interface, it is possible to speed up the "list-choices"
>etc. by improving the z-shell.  It is `nicezputs' in Src/utils.c
>that displays the string of completion list, and its current
>implementation calls `fputs' for each character in the string.

The reason it does that (and I can answer with authority here as I
originated that code) is that fputs(), being part of stdio, should
buffer output.  It is consequently not really significant how many
times it actually gets called.  Had we been dealing with unbuffered
output, I would have added some explicit buffering.

>Modifying Src/utils.c so that `nicezputs' calls `fputs' once for
>all characters, the speed becomes tolerable even on the slow
>terminal.

If that's the case, then it indicates something more fundamental is
wrong.  I suspect that it's a problem with your system.  In my
experience, zsh's completion lists appear at pretty much the speed the
terminal is set to (9600 baud for me at the moment, and that's
normal).  zsh doesn't disable buffering on the tty output stream at any
point -- it uses fflush() appropriately.

-zefram



      parent reply	other threads:[~1996-07-08  8:24 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-08  0:38 SUZUKI Hisao
1996-07-08  1:43 ` Zoltan Hidvegi
1996-07-08  7:45   ` SUZUKI Hisao
1996-07-08  8:03     ` Zefram
1996-07-08  8:51       ` Bart Schaefer
1996-07-08 10:36       ` SUZUKI Hisao
1996-07-08 10:51         ` Zefram
1996-07-08 14:42           ` Zoltan Hidvegi
1996-07-09  2:20             ` SUZUKI Hisao
1996-07-08  7:30 ` Zefram [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28128.199607080730@stone.dcs.warwick.ac.uk \
    --to=a.main@dcs.warwick.ac.uk \
    --cc=suzuki@otsl.oki.co.jp \
    --cc=zsh-workers@math.gatech.edu \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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 NNTP newsgroup(s).