Add optimization TODO
authorSiraaj Khandkar <siraaj@khandkar.net>
Tue, 10 Mar 2020 13:44:04 +0000 (09:44 -0400)
committerSiraaj Khandkar <siraaj@khandkar.net>
Tue, 10 Mar 2020 13:44:04 +0000 (09:44 -0400)
x5/khatus.c

index 7f49542..293b346 100644 (file)
@@ -255,6 +255,7 @@ read_one(Fifo *f, char *buf)
        total = 0;
        c = '\0';
        b = buf + f->pos;
+       /* TODO: Could optimize here and only blank-out the remaining slots. */
        memset(b, ' ', f->width);
        while ((current = read(f->fd, &c, 1)) && c != '\n' && c != '\0' && total++ < f->width)
                *b++ = c;
This page took 0.023445 seconds and 4 git commands to generate.