# HG changeset patch # User msalter # Date 1030411909 0 # Node ID d64d82910fa23f9057f16db0a6217fc415928b93 # Parent 906a5d289c6d537eeb7377a5d6b2a0d74cc3c6e9 RedBoot console performance tweak diff --git a/packages/redboot/current/ChangeLog b/packages/redboot/current/ChangeLog --- a/packages/redboot/current/ChangeLog +++ b/packages/redboot/current/ChangeLog @@ -1,3 +1,7 @@ +2002-08-22 Mark Salter + + * src/net/net_io.c (net_io_putc): Don't flush on every \n. + 2002-08-20 Thomas Koeller * cdl/redboot.cdl: diff --git a/packages/redboot/current/src/net/net_io.c b/packages/redboot/current/src/net/net_io.c --- a/packages/redboot/current/src/net/net_io.c +++ b/packages/redboot/current/src/net/net_io.c @@ -302,7 +302,7 @@ net_io_putc(void* __ch_data, cyg_uint8 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;