Files
element-web/src
Kegan Dougal f213901e29 Return early when calculating one-to-one room avatars
Object.keys() is O(n) and is wasted because we only care if the keys are 1 or 2.
Use `for .. in` instead and return early if there are >2 keys.

Profiling indicates this cuts wasted time from ~74ms to ~32ms for me (who has
a large number of rooms with large numbers of people in them).
2016-01-22 11:11:56 +00:00
..
2016-01-15 17:31:32 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-18 17:12:35 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-07 04:06:52 +00:00
2016-01-17 23:31:21 +00:00
2016-01-20 17:24:09 +00:00
2016-01-14 16:15:07 +00:00