Lars Gullik Bjønnes wrote: >Ben Stanley <[EMAIL PROTECTED]> writes: > >| + char *beg = static_cast<char*>(mm); >| + char *end = beg + info.st_size; >| + >| + unsigned long result = do_crc(beg,end); > >Did you check the speed difference between this and crc.process_block? > No, I haven't - yet. I didn't investigate boost/crc.hpp.
I'll investigate crc.process_block, but it looks like the right way to go for mmap-ed streams. BTW, I just did cvs up and noticed that patch wasn't applied. I thought it had gone in. Please let me know if I should re-submit the whole patch with the process_block stuff in it or just the process_block mod. Ben.