Quote:Original post by owlQuote:Original post by Anonymous Poster
Any sort of comparison will slow you down.
He could pre-calculate some sort of checksum/modification_flag for the blocks of memory and use them for the comparision. If the data is more likely to reamain unchaged, or to be modified just a little, not copying several megabytes in vain could be worth to be taken in consideration.
A clarification: When I said blocks of memory I was talking about partitioning the buffer in chunks (dunno, some size) and copying only those that were modified.