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

Call mkdir and file_put_contents once to improve performance #649

Merged
merged 1 commit into from Dec 16, 2015

Conversation

enov
Copy link
Contributor

@enov enov commented Dec 16, 2015

  • Returns early if there's nothing to write
  • Call mkdir once with recursive flag on
  • Prepare string to write and call file_put_contents once

Thanks.

- Returns early if there's nothing to write
- Call `mkdir` once with recursive flag on
- Prepare string to write and call `file_put_contents` once
@enov enov force-pushed the 3.4/feature/log-writer-file-performance branch from 1242079 to b3bbbd1 Compare December 16, 2015 16:10
@enov
Copy link
Contributor Author

enov commented Dec 16, 2015

On Travis CI, composer can't finish updating packages for HHVM, as well as in kohana/image#28 for all runtimes.

Is this related to composer/composer#1314?

acoulton added a commit that referenced this pull request Dec 16, 2015
As reported in #649, some travis builds are failing to install composer
packages - this appears to be since we added package caching.

travis-ci/travis-ci#4579 (comment)
suggests only caching composer's cached package archives, not metadata
and the checked out vendors, which may themselves be out of date.

Also try running with the --no-interaction flag, which should trigger it to fall
back to a git checkout when the travis API token has been rate limited.
@acoulton
Copy link
Member

@enov when I flushed the travis cache and re-ran the build it was OK. I've started #650 which may help.

acoulton added a commit that referenced this pull request Dec 16, 2015
…rmance

Call `mkdir` and `file_put_contents` once to improve performance
@acoulton acoulton merged commit 67c6ca7 into 3.4/develop Dec 16, 2015
@rjd22 rjd22 deleted the 3.4/feature/log-writer-file-performance branch December 17, 2015 08:11
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.

None yet

2 participants