Steve Howell
8190cdc9fb
Avoid redundant O(N) work in unfade_messages()..
...
The code in unfade_messages() is O(N) over the number of
messages, but a simple flag allows us to track the fact that
all messages are unfaded, so we can short circuit the O(N)
logic in many cases.
A typical scenario now would be that you start typing a
stream while the topic is still empty. Modulo debouncing,
every keystroke now leads to a call to unfade_messages(),
but this change only does real work the first time.
(imported from commit da07cf408bbdbf5b381ff3ec33a5e05e34eef5b5)
2013-08-11 17:05:13 -04:00
..
2013-08-09 17:35:14 -04:00
2013-07-29 12:11:26 -04:00
2013-08-01 11:47:54 -04:00
2013-07-30 12:12:59 -04:00
2013-07-29 12:11:26 -04:00
2013-08-01 11:47:54 -04:00
2013-08-11 17:05:13 -04:00
2013-08-11 17:05:13 -04:00
2013-08-09 17:35:14 -04:00
2013-07-30 12:12:58 -04:00
2013-08-09 17:35:14 -04:00
2013-07-30 12:12:58 -04:00
2013-08-11 15:57:21 -04:00
2013-07-30 12:12:58 -04:00
2013-08-08 13:04:01 -04:00
2013-07-30 12:12:58 -04:00
2013-07-30 12:12:58 -04:00
2013-08-11 15:57:21 -04:00
2013-07-30 12:12:58 -04:00
2013-08-05 16:59:49 -04:00
2013-08-11 17:05:13 -04:00
2013-07-29 12:11:26 -04:00
2013-07-29 12:11:26 -04:00
2013-08-11 17:05:13 -04:00
2013-08-05 16:10:01 -04:00
2013-08-01 11:47:54 -04:00
2013-08-01 11:47:54 -04:00
2013-08-08 17:23:27 -04:00
2013-08-08 18:22:44 -04:00
2013-08-06 17:18:40 -04:00
2013-07-30 13:10:50 -04:00
2013-08-08 13:04:01 -04:00
2013-08-09 17:35:14 -04:00
2013-08-02 17:28:04 -04:00
2013-08-08 13:03:09 -04:00
2013-07-29 12:11:26 -04:00
2013-07-29 12:11:26 -04:00
2013-08-09 12:29:02 -04:00
2013-08-09 17:35:14 -04:00
2013-08-09 17:35:14 -04:00
2013-08-09 17:35:14 -04:00
2013-08-07 10:24:03 -04:00
2013-07-30 12:12:58 -04:00
2013-08-09 17:35:14 -04:00
2013-08-01 11:47:54 -04:00
2013-08-09 18:53:22 -04:00
2013-08-09 17:35:14 -04:00
2013-08-09 17:12:23 -04:00
2013-08-06 16:15:47 -04:00
2013-08-11 17:05:13 -04:00