Unverified Commit 199422cd authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Skip first time full dill transfer (#21133)

* Don't sync first full kernel file.

* Update the comment
parent d107ff9d
...@@ -509,6 +509,9 @@ class DevFS { ...@@ -509,6 +509,9 @@ class DevFS {
outputPath: dillOutputPath ?? fs.path.join(getBuildDirectory(), 'app.dill'), outputPath: dillOutputPath ?? fs.path.join(getBuildDirectory(), 'app.dill'),
packagesFilePath : _packagesFilePath, packagesFilePath : _packagesFilePath,
); );
// Don't send full kernel file that would overwrite what VM already
// started loading from.
if (!bundleFirstUpload) {
final String compiledBinary = compilerOutput?.outputFilename; final String compiledBinary = compilerOutput?.outputFilename;
if (compiledBinary != null && compiledBinary.isNotEmpty) { if (compiledBinary != null && compiledBinary.isNotEmpty) {
final Uri entryUri = fs.path.toUri(projectRootPath != null final Uri entryUri = fs.path.toUri(projectRootPath != null
...@@ -521,6 +524,7 @@ class DevFS { ...@@ -521,6 +524,7 @@ class DevFS {
numBytes += content.size; numBytes += content.size;
} }
} }
}
if (dirtyEntries.isNotEmpty) { if (dirtyEntries.isNotEmpty) {
printTrace('Updating files'); printTrace('Updating files');
if (_httpWriter != null) { if (_httpWriter != null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment