0

I use ko.mapping pluging for binding a complex model (f.e. Project having list of branches, each having list of Tasks). Data are refreshed let's say every 10 seconds with ajax request and updated by the following function: ko.mapping.fromJS(data, viewModel);

After several updates and leaving page (or page Refresh) in Chrome is one core of my CPU busy and page leaving takes about 10s to a minute. Situation in Firefox looks better, but observed rarely.

Thanks

4

1 回答 1

0

当 CPU 受到重击时,您是否在调试器中查看过 Project 对象中有多少分支?值得检查映射是否正在更新分支,而不是在每次更新时创建新分支。

于 2013-01-15T14:01:30.603 回答