Skip to content

[2.7][Process] Fix memory issue when using large input streams #18015

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
Mar 6, 2016

Conversation

romainneutron
Copy link
Contributor

Q A
Branch 2.7
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #17667
License MIT

This removes buffering of a stream input. Tests shows that this implementation is much faster and fixes some issues when streams are based on very large inputs

@romainneutron romainneutron changed the title [Process] Fix memory issue when using large input streams [2.7][Process] Fix memory issue when using large input streams Mar 4, 2016
$data .= $dataread;
}
// Remove extra null chars returned by fread
if ($data !== '') {
Copy link
Member

Choose a reason for hiding this comment

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

Replace it by if ('' !== $data) { for consistency?

@romainneutron
Copy link
Contributor Author

Tests are okay on component process on both CI

@nicolas-grekas
Copy link
Member

👍

@fabpot
Copy link
Member

fabpot commented Mar 6, 2016

Thank you @romainneutron.

@fabpot fabpot merged commit fb8da9f into symfony:2.7 Mar 6, 2016
fabpot added a commit that referenced this pull request Mar 6, 2016
…eams (romainneutron)

This PR was merged into the 2.7 branch.

Discussion
----------

[2.7][Process] Fix memory issue when using large input streams

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #17667
| License       | MIT

This removes buffering of a stream input. Tests shows that this implementation is much faster and fixes some issues when streams are based on very large inputs

Commits
-------

fb8da9f [Process] Fix memory issue when using large input streams
@romainneutron romainneutron deleted the fix-17667 branch March 6, 2016 11:30
fabpot added a commit that referenced this pull request Mar 10, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

[Process] Fix pipes handling

| Q             | A
| ------------- | ---
| Branch        | 2.7
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #18015
| License       | MIT
| Doc PR        | -

Commits
-------

3ab6c39 [Process] Fix pipes handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants