TALPA strides forward
TALPA strides forward
Posted Aug 28, 2008 23:41 UTC (Thu) by njs (subscriber, #40338)In reply to: TALPA strides forward by nix
Parent article: TALPA strides forward
No, you just need a cleverer algorithm -- like someone mentioned above, you should look for changed timestamps rather than simply "future" timestamps (because clocks get set back all the time, but it's extraordinarily unlikely that a second edit will come along at exactly the moment when the old timestamp is repeated). Then to fix the quickly-repeated-edits problem, if the timestamp is within 2*resolution of the current time (for some conservative definition of resolution), don't write that timestamp down in your cache. Easy and safe, and causes hardly any speed degradation.
(High-quality VCS's already do this; I first learned the trick from bzr, dunno if any other popular ones have picked it up.)