From f989ccfa1a1c575a7d1bcc499f171cab5394602b Mon Sep 17 00:00:00 2001 From: Marko Vuksanovic Date: Sun, 30 Mar 2014 14:32:17 +1100 Subject: [PATCH] perf(DirtyCheckingChangeDetectorGroup): Disable calls to _assertRecordsOk(). Disabled calls to _assertRecordsOk function as it is too slow. --- lib/change_detection/dirty_checking_change_detector.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/change_detection/dirty_checking_change_detector.dart b/lib/change_detection/dirty_checking_change_detector.dart index 4e532a4bb..de5855e67 100644 --- a/lib/change_detection/dirty_checking_change_detector.dart +++ b/lib/change_detection/dirty_checking_change_detector.dart @@ -124,7 +124,8 @@ class DirtyCheckingChangeDetectorGroup implements ChangeDetectorGroup { * Create a child [ChangeDetector] group. */ DirtyCheckingChangeDetectorGroup newGroup() { - assert(_root._assertRecordsOk()); + // Disabled due to issue https://github.com/angular/angular.dart/issues/812 + // assert(_root._assertRecordsOk()); var child = new DirtyCheckingChangeDetectorGroup(this, _fieldGetterFactory); if (_childHead == null) { _childHead = _childTail = child; @@ -133,7 +134,8 @@ class DirtyCheckingChangeDetectorGroup implements ChangeDetectorGroup { _childTail._next = child; _childTail = child; } - assert(_root._assertRecordsOk()); + // Disabled due to issue https://github.com/angular/angular.dart/issues/812 + // assert(_root._assertRecordsOk()); return child; }