add comment about optimization

This commit is contained in:
Guillermo Rauch 2017-02-17 02:42:44 -03:00
parent 75b5eb7d3f
commit 414503d63b

View file

@ -44,6 +44,8 @@ rpc.on('session add', data => {
store_.dispatch(sessionActions.addSession(data));
});
// we aggregate all the incoming pty events by raf
// debouncing, to reduce allocation and iterations
let req;
let objects = {};
rpc.on('session data', ({uid, data}) => {