Check CRCs and offsets in downloads.
commit37bbf141178b8629bac7cfc9cee110c0271b3a1e
authorKalle Olavi Niemitalo <kon@iki.fi>
Sun, 4 Nov 2007 17:53:12 +0000 (4 19:53 +0200)
committerKalle Olavi Niemitalo <kon@hanna-niemitalo.Niemitalo.local>
Sun, 4 Nov 2007 17:53:12 +0000 (4 19:53 +0200)
treef73e84b2d1ebf9f3fa43f83f469a6fe7b5379c2d
parent94ed148172766c10787a507358e3c7f107c54a7d
Check CRCs and offsets in downloads.

Also, flush the file to disk only at the end, rather than after
each block.  This should give a nice speedup.  The CRC checking
slows things down a little but profiling indicates 91% of the time of
-[TFUSBController getFile:forPath:toSaveTo:beginAtOffset:withLooping:existingTime:]
is being spent in mach_msg called from doRecv, and only 2% in
-[TFDataFormat findCRC:length:].
ChangeLog
TFDataFormat.h
TFDataFormat.m
TFUSBController.m
ToDo