]> arthur.barton.de Git - bup.git/commitdiff
Add some comments so nobody thinks I think fgetc/fputc are fast.
authorAvery Pennarun <apenwarr@gmail.com>
Sun, 4 Oct 2009 02:33:28 +0000 (22:33 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 4 Oct 2009 02:33:28 +0000 (22:33 -0400)
hashsplit.c

index de6fed4210fdbe6f22512cf189c672f35eb6d2b5..12efafd21fede15050f28c872dc0bd049623955a 100644 (file)
@@ -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);
     }