This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RedBoot telnet console performance tweak


This prevents one packet per line which can be quite slow depending
on host system.

--Mark


Index: redboot/current/ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/ChangeLog,v
retrieving revision 1.72
diff -u -p -5 -r1.72 ChangeLog
--- redboot/current/ChangeLog	24 Aug 2002 11:34:49 -0000	1.72
+++ redboot/current/ChangeLog	27 Aug 2002 01:31:06 -0000
@@ -1,5 +1,9 @@
+2002-08-22  Mark Salter  <msalter@redhat.com>
+
+	* src/net/net_io.c (net_io_putc): Don't flush on every \n.
+
 2002-08-20  Thomas Koeller  <thomas@koeller.dyndns.org>
 
     	* cdl/redboot.cdl:
     	* include/redboot.h:
     	* src/main.c:
Index: redboot/current/src/net/net_io.c
===================================================================
RCS file: /cvs/ecos/ecos/packages/redboot/current/src/net/net_io.c,v
retrieving revision 1.28
diff -u -p -5 -r1.28 net_io.c
--- redboot/current/src/net/net_io.c	30 Jul 2002 12:59:23 -0000	1.28
+++ redboot/current/src/net/net_io.c	27 Aug 2002 01:31:06 -0000
@@ -300,11 +300,11 @@ net_io_putc(void* __ch_data, cyg_uint8 c
     if (c == '$') have_dollar = true;
     if (have_dollar && (c == '#')) {
         have_hash = true;
         hash_count = 0;
     }
-    if ((++out_buflen == sizeof(out_buf)) || (c == '\n') ||
+    if ((++out_buflen == sizeof(out_buf)) ||
         (have_hash && (++hash_count == 3))) {
         net_io_flush();
         have_dollar = false;
     }
     CYGARC_HAL_RESTORE_GP();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]