speck@brl-tgr.ARPA (12/12/84)
Index: etc/dump/dumptape.c (4.2BSD)
Description: 'dump' spends over 2/3 of its user time
copying 1K-byte arrays inefficiently.
Fix: Replace the slow code with a structure copy (uses movc3 on vax).
diff old/dumptape.c dumptape.c
30,33c30
< register i;
<
< for (i=0; i < TP_BSIZE; i++)
< tblock[trecno][i] = *dp++;
---
> *(union u_spcl *)(tblock[trecno]) = *(union u_spcl *)dp;
--------
Don Speck "Cryptic? Why do you think they call it CODE?"