Skip to content

refactor(livesync): speedup livesync #3362

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 19, 2018
Merged

Conversation

Mitko-Kerezov
Copy link
Contributor

Speedup LiveSync with the following optimizations:

  • Upon a file change do not check all of node_modules for changes unless --syncAllFiles is passed. This was unnecessary and leads to a 2 s delay in angular projects
  • With the previous implementation, whenever a file change was detected CLI used to delete all files in platforms/.../app directory, then copy all files from the project's app directory and then only upload the changed ones. Change the implementation so that only changed files are copied and uploaded.

Ping @rosen-vladimirov @KristianDD

@Mitko-Kerezov Mitko-Kerezov self-assigned this Feb 9, 2018
Copy link
Contributor

@rosen-vladimirov rosen-vladimirov left a comment

Choose a reason for hiding this comment

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

After using logger

@@ -81,6 +79,7 @@ export class AppFilesUpdater {
return this.fs.createDirectory(destinationPath);
}

console.log(`Copying ${source} to ${destinationPath}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

meme_console_log

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is actually a forgotten debug message, will remove

@Mitko-Kerezov Mitko-Kerezov force-pushed the kerezov/speedup-livesync branch from a4ffa28 to fbf8cf2 Compare February 13, 2018 10:54
@Mitko-Kerezov
Copy link
Contributor Author

Ping @rosen-vladimirov with fixed comments

@Mitko-Kerezov Mitko-Kerezov merged commit 580f238 into master Feb 19, 2018
@Mitko-Kerezov Mitko-Kerezov deleted the kerezov/speedup-livesync branch February 19, 2018 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants