🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Ray Moody Wed, 14 Jun 1989 05:59
Efficiency is important
#96
Author: Ray Moody
Date: Wed, 14 Jun 1989 05:59
33 lines
1559 bytes
    Bash prints its prompts to stderr.  Stderr is unbuffered.  Thus,
bash makes one (expensive) write () system call for each character it
prints.  This eats our poor VAX 11/750 alive.

								Ray
-------------------------------------------------------------------------------
RCS file: RCS/shell.c,v
retrieving revision 0.99.1.2
diff -c -r0.99.1.2 shell.c
*** /tmp/,RCSt1023214	Wed Jun 14 00:54:32 1989
--- shell.c	Wed Jun 14 00:54:01 1989
***************
*** 188,193
    if (shell_initialized)
      shell_reinitialize ();
  
    /* Here's a hack.  If the name of this shell is "sh", then don't do
       any startup files; just try to be more like /bin/sh. */
    {

--- 188,198 -----
    if (shell_initialized)
      shell_reinitialize ();
  
+   /* Added Wed Jun 14 00:53:21 EST 1989 by Ray Moody */
+   /* We call setlinebuf () so that the readline package does not use
+      one (expensive) write () system call for each character it prints. */
+   setlinebuf(stderr);
+  
    /* Here's a hack.  If the name of this shell is "sh", then don't do
       any startup files; just try to be more like /bin/sh. */
    {
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads