fix perf problems on todomvc