More performance improvements to try #4104
Replies: 5 comments 11 replies
-
At ref 0551fa2 is the new "triggering" heuristic, to cut down on time spent doing nothing when a builder doesn't apply. It does nothing out of the box, to make it do something add to your own
--specifying which direct imports trigger each builder you're using. (For some builders this can probably end up directly in the builder config so you don't have to do anything!) If the heuristic does something you'll see output with "not triggered", like
which means that build step was not triggered and so did nothing ... quickly :) This is the first change after the element2 release |
Beta Was this translation helpful? Give feedback.
-
This looks great! I just upgraded my only external builder dependency to A couple questions:
|
Beta Was this translation helpful? Give feedback.
-
Is the lint being worked on? :) I personally woudln't ship this unless the lint to spot mistakes was also shipped. |
Beta Was this translation helpful? Give feedback.
-
Just tried it out. My main targets:
$default:
builders:
anthem_codegen|anthemDartModelGeneratorBuilder:
generate_for:
- lib/*
- lib/**/*
options:
run_only_if_triggered: true
anthem_codegen|cppModelBuilder:
generate_for:
- lib/*
- lib/**/*
options:
run_only_if_triggered: true
anthem_codegen|debugEnginePathGeneratorBuilder:
generate_for:
- lib/engine_api/engine_connector.dart
mobx_codegen|mobx_generator:
options:
run_only_if_triggered: true
triggers:
anthem_codegen|anthemDartModelGeneratorBuilder:
- import anthem_codegen/include/annotations.dart
anthem_codegen|cppModelBuilder:
- import anthem_codegen/include/annotations.dart
mobx_codegen|mobx_generator:
- import mobx/mobx.dart Before:
After:
The complete no-op is surprising to me. One of the files that I expect to run codegen has the following imports: import 'package:anthem/helpers/id.dart';
import 'package:anthem/model/anthem_model_base_mixin.dart';
import 'package:anthem_codegen/include/annotations.dart';
import 'package:mobx/mobx.dart'; Is there anything additional I could provide to help diagnose the issue? |
Beta Was this translation helpful? Give feedback.
-
FYI: I'll be on vacation next week, I think I'll wait until I'm back to release anything; so: early August. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone! Following on from this discussion, another chance to try improvements before they're released.
As before you can try unreleased versions with overrides in your
pubspec.yaml
thendart pub get
:I'll add new posts with a ref when there is something interesting to try.
Beta Was this translation helpful? Give feedback.
All reactions