From: Avery Pennarun Date: Sun, 4 Oct 2009 02:33:28 +0000 (-0400) Subject: Add some comments so nobody thinks I think fgetc/fputc are fast. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=51c11ad1565b643551dc467277199a630ec5c10f;p=packages%2Fb%2Fbup.git Add some comments so nobody thinks I think fgetc/fputc are fast. --- diff --git a/hashsplit.c b/hashsplit.c index de6fed4..12efafd 100644 --- a/hashsplit.c +++ b/hashsplit.c @@ -49,6 +49,7 @@ int main() memset(buf, 0, sizeof(buf)); + // FIXME: read more than one byte at a time. This is absurdly slow. while ((c = fgetc(stdin)) != EOF) { sum = stupidsum_add(sum, buf[i], c); @@ -86,6 +87,9 @@ int main() if (!pipe) pipe = popen("git hash-object --stdin -w", "w"); + + // FIXME: write more than one byte at a time. This is absurdly + // slow. fputc(c, pipe); }