Angular 2性能IE11*ngFor

Lel*_*eus 10 performance internet-explorer-11 es6-shim ngfor angular

我正在尝试使用Angular 2,我注意到在使用*ng超过1500项时,Internet Explorer 11上的性能显着变慢.IE11大约需要25秒,而其他浏览器大约需要1秒.

暂停调试器我注意到代码不断调用es6-shim.js中的isNan函数.这里是调用堆栈:

在此输入图像描述

这里有一个工作的plnkr:http://plnkr.co/edit/sEujClHmuCbrydIiYQYL?p = preview .代码很简单:

<ul *ngFor="#item of items">
    <li>Item: {{item.itemKey}}</li>
</ul>

//Load items simulating remote load
setTimeout(function(){
  for (let i = 0; i < 1500; i++) {
          self.items.push(new Item(i+""));
      }
},1000);
Run Code Online (Sandbox Code Playgroud)

有同样问题的人吗?任何改善性能的解决方法或提示?

先感谢您.

a b*_*ver 8

问题是IE没有本机实现Map.在setget该填充工具的功能是非常慢(相比,其天然对应)并占据了大部分的时间:

在此输入图像描述

也许 - 或者希望 - 其他的polyfills Map更快es6-shim.

更新:

我用core-js测试了你的代码,它的性能似乎更接近本机实现的性能.

  • 你有那个plunker的链接吗?我很好奇你使用了`core-js`的哪个子集,以及你是否对该得分有推荐. (2认同)