The stupid question is the question not asked | |
PerlMonks |
Re^3: [OT] Merging messages between users on different machinesby BrowserUk (Patriarch) |
on Jun 23, 2015 at 12:16 UTC ( [id://1131613]=note: print w/replies, xml ) | Need Help?? |
MD5(Timestamp+message) I strongly suggest that you keep the timestamps outside of (separate from) whichever digest function you use. Digests are inherently unorderable with respect to time. The open part of the question is: which shortcuts I can apply to avoid exchanging full lists of messages? In the following assume: messageNo is a monotonically increase number from oldest to newest; messageId is timestamp+digest[+deviceId+deviceId].
Basically; do a binary search (oldest->newest) to locate the first difference; and then move forward from that point; exchanging first messageIds; then full messages if needed. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
I'm with torvalds on this Agile (and TDD) debunked I told'em LLVM was the way to go. But did they listen!
In Section
Seekers of Perl Wisdom
|
|