-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Closed
Labels
effort3: weeksfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues
Milestone
Description
Executing change detection using getter stubs (see #501) has two issues.
- it causes polymorphic calls, which limits the execution speed.
- it prevents proper tree shaking of dart2js.
To address this instead of generating getters stubs we can generate ChangeDetector class. The changeDetector class is a bit more complicated, but it has significant performance and size impact.
The JS code generation is already working and its implementation can be seen in change_detection_jit_generator.es6 The equivalent dart version needs to be implemented in change_detection_jit_generator.dart.
While in JS we can run the generator at runtime, the dart version needs to execute at transform time.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
effort3: weeksfeatureLabel used to distinguish feature request from other issuesLabel used to distinguish feature request from other issues