Angular 2 performance IE11 *ngFor

后端 未结 1 409
时光取名叫无心
时光取名叫无心 2021-02-08 10:22

I\'m trying Angular 2 and I noticed that performance on Internet Explorer 11 is dramatically slow while cycling with *ngFor over 1500 items. It takes about 25sec with IE11 where

1条回答
  •  清酒与你
    2021-02-08 10:30

    The problem is that IE has no native implementation of Map. The set and get functions of the polyfill are extremely slow (compared to their native counterparts) and take most of the time:

    Maybe - or hopefully - other polyfills for Map are faster than es6-shim.

    Update:

    I have tested your code with core-js and its performance seems to be much closer to that of the native implementation.

    0 讨论(0)
提交回复
热议问题