flist transmission and sorting

jw schultz jw at pegasys.ws
Sat May 17 10:29:24 EST 2003


I've been ruminating a bit on the qsorted flist and
duplicate removal and have an idea.

What if we removed end_file_entry() from send_file_name()
and instead had a 
	for(i=0; i < flist->count; ++i)
		send_file_entry(flist->files[i], f, ??)
in send_file_list().  As near as i can tell this would be
unnoticeable to the protocol.

Once done the sort of the file list could be moved to
precede sending it.  Thus making the sort on the receiver a
one-pass noop that could be dropped after a protocol bump.
It would also improve slightly the effectiveness of
the SAME_NAME optimisation.

With the protocol version dependant receiver non-sort the
sort order can be adjusted as necessary to produce whatever
effects are wanted in the way of duplicate removal.

Just a thought.

	J.W. Schultz            Pegasystems Technologies
	email address:		jw at pegasys.ws

		Remember Cernan and Schmitt

More information about the rsync mailing list