Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

ng-repeat and ng-if performance issues since v0.9.9 #828

@lohnicky

Description

@lohnicky

HTML:

<div>
  <table>
    <tbody>
        <tr ng-repeat="recipe in ctrl.recipes">
          <td ng-if="recipe.show">{{recipe.name}}</td>
        </tr>
    </tbody>
  </table>
</div>

DART:

class MyComponent {
  List recipes;
  MyComponent() {
    recipes = new List(1000);
    for(var i = 0; i < 1000; i++) {
      recipes[i] = new Recipe();
    }
  }
}

class Recipe {
  String name = "____";
  bool show = true;
}

PROBLEM:
Performance on my machine (Ubuntu):

  • v 0.9.8: takes about 1s to render
  • v 0.9.9: takes about 55s to render
  • v 0.9.9 without ng-if: takes about 10s to render

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions