mirror of
https://github.com/flutter/flutter
synced 2024-10-13 19:52:53 +00:00
Skip first time full dill transfer (#21133)
* Don't sync first full kernel file. * Update the comment
This commit is contained in:
parent
d107ff9d48
commit
199422cd2d
|
@ -509,16 +509,20 @@ class DevFS {
|
|||
outputPath: dillOutputPath ?? fs.path.join(getBuildDirectory(), 'app.dill'),
|
||||
packagesFilePath : _packagesFilePath,
|
||||
);
|
||||
final String compiledBinary = compilerOutput?.outputFilename;
|
||||
if (compiledBinary != null && compiledBinary.isNotEmpty) {
|
||||
final Uri entryUri = fs.path.toUri(projectRootPath != null
|
||||
? fs.path.relative(pathToReload, from: projectRootPath)
|
||||
: pathToReload,
|
||||
);
|
||||
if (!dirtyEntries.containsKey(entryUri)) {
|
||||
final DevFSFileContent content = DevFSFileContent(fs.file(compiledBinary));
|
||||
dirtyEntries[entryUri] = content;
|
||||
numBytes += content.size;
|
||||
// Don't send full kernel file that would overwrite what VM already
|
||||
// started loading from.
|
||||
if (!bundleFirstUpload) {
|
||||
final String compiledBinary = compilerOutput?.outputFilename;
|
||||
if (compiledBinary != null && compiledBinary.isNotEmpty) {
|
||||
final Uri entryUri = fs.path.toUri(projectRootPath != null
|
||||
? fs.path.relative(pathToReload, from: projectRootPath)
|
||||
: pathToReload,
|
||||
);
|
||||
if (!dirtyEntries.containsKey(entryUri)) {
|
||||
final DevFSFileContent content = DevFSFileContent(fs.file(compiledBinary));
|
||||
dirtyEntries[entryUri] = content;
|
||||
numBytes += content.size;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (dirtyEntries.isNotEmpty) {
|
||||
|
|
Loading…
Reference in a new issue