Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Optimize by run single list --format=xml #34

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
bamarni merged 3 commits into bamarni:master from andytson-inviqa:feature/optimize-single-xml
Mar 14, 2018
Merged

Optimize by run single list --format=xml #34

bamarni merged 3 commits into bamarni:master from andytson-inviqa:feature/optimize-single-xml
Mar 14, 2018

Conversation

@andytson-inviqa
Copy link
Contributor

@andytson-inviqa andytson-inviqa commented Mar 6, 2018

The existing code is very slow with more than a couple of commands (especially so on a Docker for Mac osxfs host volume mount).

The symfony/console library supports fetching a single combined xml of all commands, so using this reduces the number of console command runs to one, massively speeding it up.

rquadling reacted with thumbs up emoji
The existing code is very slow with more than a couple of commands (especially so on a Docker for Mac osxfs host volume mount).
The symfony/console library supports fetching a single combined xml of all commands, so using this reduces the number of console command runs to one, massively speeding it up.
$rawCommands = explode("\n", $process->getOutput());
array_pop($rawCommands);
$xmlCommands = $process->getOutput();
$xml = simplexml_load_string($xmlCommands);
Copy link
Collaborator

@rquadling rquadling Mar 6, 2018

Choose a reason for hiding this comment

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

simplexml MAY be disabled (http://www.php.net/manual/en/simplexml.installation.php using the --disable-simplexml option). Adding this extension as a requirement in composer.json would be the easiest way to deal with that. Considering this extension is enabled by default, I'd say that this is a safe solution. (http://www.php.net/manual/en/simplexml.installation.php#121170)

Copy link
Contributor Author

@andytson-inviqa andytson-inviqa Mar 6, 2018
edited
Loading

Choose a reason for hiding this comment

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

sure, would be good to add that to the composer.json. Just a note though that this extension was already being used in the deleted code below, but I'm happy to add it anyway

Copy link
Collaborator

@rquadling rquadling Mar 6, 2018
edited
Loading

Choose a reason for hiding this comment

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

Ha! So it was already missing. Hopefully this will be accepted and merged soon. Nice work and thank you for the PR.

@bamarni bamarni merged commit ad04b47 into bamarni:master Mar 14, 2018
Copy link
Owner

bamarni commented Mar 14, 2018

Thanks, really nice one

@andytson-inviqa andytson-inviqa deleted the feature/optimize-single-xml branch March 15, 2018 07:33
Copy link
Collaborator

Any chance of a release please?

Copy link
Collaborator

@bamarni Please can you make a release?

Copy link
Collaborator

@bamarni Does anyone else have release capabilities? It would be really nice for this to be released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@rquadling rquadling rquadling left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /