Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DI] Deduplicate resources while adding them #21492

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 1, 2017

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Feb 1, 2017

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

Since the string cast of resources is already used to deduplicate them, let's do it earlier. This can only decrease memory usage.

@nicolas-grekas nicolas-grekas added this to the 3.3 milestone Feb 1, 2017
@nicolas-grekas nicolas-grekas changed the title [DI] Deduplicate resource while adding them [DI] Deduplicate resources while adding them Feb 1, 2017
@stof
Copy link
Member

stof commented Feb 1, 2017

👍

@fabpot
Copy link
Member

fabpot commented Feb 1, 2017

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 04853fc into symfony:master Feb 1, 2017
fabpot added a commit that referenced this pull request Feb 1, 2017
…ekas)

This PR was merged into the 3.3-dev branch.

Discussion
----------

[DI] Deduplicate resources while adding them

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

Since the string cast of resources is already used to deduplicate them, let's do it earlier. This can only decrease memory usage.

Commits
-------

04853fc [DI] Deduplicate resource while adding them
@nicolas-grekas nicolas-grekas deleted the di-coalesce-res branch February 1, 2017 19:18
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.

4 participants