Skip to content

Conversation

jonahwilliams
Copy link
Contributor

Description

Attempt to recover some of the performance loss from moving hot reload artifacts to a temporary directory. If there is a dill file in build/app.dill then copy that into temp.

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 12, 2019
@codecov
Copy link

codecov bot commented Sep 12, 2019

Codecov Report

Merging #40366 into master will increase coverage by 0.65%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #40366      +/-   ##
==========================================
+ Coverage    58.4%   59.06%   +0.65%     
==========================================
  Files         192      192              
  Lines       18627    18622       -5     
==========================================
+ Hits        10880    10999     +119     
+ Misses       7747     7623     -124
Flag Coverage Δ
#flutter_tool 59.06% <100%> (+0.65%) ⬆️
Impacted Files Coverage Δ
...ackages/flutter_tools/lib/src/resident_runner.dart 55.49% <100%> (+0.26%) ⬆️
...utter_tools/lib/src/commands/shell_completion.dart 12.5% <0%> (-68.75%) ⬇️
.../flutter_tools/lib/src/commands/build_fuchsia.dart 13.63% <0%> (-68.19%) ⬇️
...es/flutter_tools/lib/src/linux/linux_workflow.dart 55.55% <0%> (-33.34%) ⬇️
...tools/lib/src/fuchsia/fuchsia_kernel_compiler.dart 0% <0%> (-7.7%) ⬇️
...ackages/flutter_tools/lib/src/reporting/usage.dart 84.56% <0%> (-4.03%) ⬇️
...ges/flutter_tools/lib/src/fuchsia/fuchsia_sdk.dart 64.81% <0%> (-3.71%) ⬇️
packages/flutter_tools/lib/src/asset.dart 80.65% <0%> (-3.3%) ⬇️
...r_tools/lib/src/runner/flutter_command_runner.dart 67.76% <0%> (-1.66%) ⬇️
packages/flutter_tools/lib/src/cache.dart 43.5% <0%> (-0.73%) ⬇️
... and 14 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 925a52f...d0b6b3e. Read the comment docs.

@jonahwilliams jonahwilliams requested a review from aam September 12, 2019 17:37
@jonahwilliams jonahwilliams merged commit 1fec30e into flutter:master Sep 12, 2019
@jonahwilliams jonahwilliams deleted the copy_dill_if_exists branch September 12, 2019 19:45
@@ -548,6 +548,16 @@ abstract class ResidentRunner {
if (!artifactDirectory.existsSync()) {
artifactDirectory.createSync(recursive: true);
}
// TODO(jonahwilliams): this is a temporary work around to regain some of
// the initialize from dill performance. Longer term, we should have a
// better way to determine where the appropriate dill file is, as this
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an issue filed for this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Filled #40388

Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Sep 30, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants