shithub: mc

Download patch

ref: 26fbf11cc69cf2abd07b9b53feb814d290435896
parent: 4008733e9bc1a9285b70d055f6aeaa4b0a39483b
author: Ori Bernstein <[email protected]>
date: Sat Sep 9 10:54:29 EDT 2017

We don't need to write all the zeros explicitly.

	This makes initializing large zeros faster.

--- a/6/genp9.c
+++ b/6/genp9.c
@@ -340,8 +340,6 @@
 			n += writeblob(fd, b->seq.sub[i], off+n, lbl);
 		break;
 	case Btpad:
-		for (i = 0; i < b->npad; i++)
-			fprintf(fd, "\tDATA %s+%llu(SB)/1,$0\n", lbl, (uvlong)off+n+i);
 		n += b->npad;
 		break;
 	}