- One example is that show_progress() calls gettimeofday() even
if do_progress is not set. show_progress() is called on every
block, so there is an extra system call per (700 byte) block.
+ (NOTE: this is currently fixed in CVS.)
- Another example is that file_write writes each matching (700 byte)
block without buffering, so that's another system call per block.
exit_cleanup(status);
}
-diff -bur rsync/progress.c rsync-craig/progress.c
---- rsync/progress.c Sun Apr 7 22:28:57 2002
-+++ rsync-craig/progress.c Sat Dec 7 18:57:19 2002
-@@ -97,6 +97,8 @@
- extern int do_progress, am_server;
- struct timeval now;
-
-+ if (!do_progress) return;
-+
- gettimeofday(&now, NULL);
-
- if (!start_time.tv_sec && !start_time.tv_usec) {
diff -bur rsync/proto.h rsync-craig/proto.h
--- rsync/proto.h Wed Jul 31 17:37:02 2002
+++ rsync-craig/proto.h Sun Dec 8 16:27:55 2002