Skip to content
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

wp-now: download and unzip using pipes #241

Merged

Conversation

sejas
Copy link
Collaborator

@sejas sejas commented May 3, 2023

Proposed changes:

@dmsnell suggested here #188 (comment) a great optimization to download zip files.

  • Start unzipping at the same time we are downloading the files. This saves 8 seconds on my computer. From 32.93s to 28.04s

Testing instructions

  • Build packages nvm use && yarn install && yarn build
  • Delete the folder manually: ~/.wp-now/wordpress-versions
  • Run `nx preview wp-now start --path=/Users/path-to-your-theme-or-plugin"
  • Observe ~/.wp-now/wordpress-versions/latest exist and WordPress has started correctly.

@sejas sejas self-assigned this May 3, 2023
@sejas sejas requested review from danielbachhuber and adamziel May 3, 2023 16:22
@sejas
Copy link
Collaborator Author

sejas commented May 3, 2023

@dmsnell, I couldn't mark you as a reviewer.
Screenshot 2023-05-03 at 17 22 54

Copy link
Member

@dmsnell dmsnell left a comment

Choose a reason for hiding this comment

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

Assuming this has been properly tested I like the change. Less state to track and cleanup.

Please wait for another approval from @danielbachhuber or @adamziel 🙇‍♂️

(no worries, I'm watching the repo so I saw the PR)

@adamziel
Copy link
Collaborator

adamziel commented May 4, 2023

Lovely

@adamziel adamziel merged commit 8ccb5a7 into WordPress:trunk May 4, 2023
@sejas sejas deleted the update/wp-now-zip-download-pipe branch May 4, 2023 16:25
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.

Local Environment: Run zip downloads through a data pipe
3 participants