adium 2761:687f12da3240: Increase the coalescing timeout to 25ms...
commits at adium.im
commits at adium.im
Thu Oct 22 16:17:58 UTC 2009
details: http://hg.adium.im/adium/rev/687f12da3240
revision: 2761:687f12da3240
author: Stephen Holt <sholt at adium.im>
date: Thu Oct 22 12:17:43 2009 -0400
Increase the coalescing timeout to 25ms, max of 400 coalesced messages (10s of potential lag before display)
diffs (25 lines):
diff -r 15f5873def89 -r 687f12da3240 Plugins/WebKit Message View/Template.html
--- a/Plugins/WebKit Message View/Template.html Wed Oct 21 17:25:54 2009 -0400
+++ b/Plugins/WebKit Message View/Template.html Thu Oct 22 12:17:43 2009 -0400
@@ -64,17 +64,17 @@
}
// (re)start the coalescing timer.
- // we wait 10ms for a new message to come in.
+ // we wait 25ms for a new message to come in.
// If we get one, restart the timer and wait another 10ms.
// If not, run outputHTML()
- // We do this a maximum of 500 times, for 5s max that can be spent
+ // We do this a maximum of 400 times, for 10s max that can be spent
// coalescing input, since this will block display.
this.coalesce = function() {
window.clearTimeout(self.timeoutID);
- self.timeoutID = window.setTimeout(outputHTML, 10);
+ self.timeoutID = window.setTimeout(outputHTML, 25);
self.isCoalescing = true;
self.coalesceRounds += 1;
- if(500 < self.coalesceRounds)
+ if(400 < self.coalesceRounds)
self.cancel();
}
More information about the commits
mailing list