Movatterモバイル変換


[0]ホーム

URL:


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

[DI] fix combinatorial explosion when analyzing the service graph#29369

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:3.4fromnicolas-grekas:di-fix
Nov 28, 2018

Conversation

@nicolas-grekas
Copy link
Member

QA
Branch?3.4
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets#29336
LicenseMIT
Doc PR-

and a few minor things found meanwhile.

alexander-schranz and validaide-mark-bijl reacted with thumbs up emoji
@nicolas-grekasnicolas-grekas added this to the3.4 milestoneNov 28, 2018
@nicolas-grekasnicolas-grekas merged commit0d0be12 intosymfony:3.4Nov 28, 2018
nicolas-grekas added a commit that referenced this pull requestNov 28, 2018
…e graph (nicolas-grekas)This PR was merged into the 3.4 branch.Discussion----------[DI] fix combinatorial explosion when analyzing the service graph| Q             | A| ------------- | ---| Branch?       | 3.4| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets |#29336| License       | MIT| Doc PR        | -and a few minor things found meanwhile.Commits-------0d0be12 [DI] fix combinatorial explosion when analyzing the service graph
@nicolas-grekasnicolas-grekas deleted the di-fix branchNovember 28, 2018 18:31
Copy link
Contributor

@alexander-schranzalexander-schranz left a comment

Choose a reason for hiding this comment

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

@nicolas-grekas thank you! The performance is now again near the 4.1.7 version:

Current benchmark:

v4.1.7:8,85s user 1,02s system 98% cpu 9,987 total
v4.1.8:68,62s user 1,42s system 98% cpu 1:05,01 total
v4.1.8 with this patch:11,52s user 1,29s system 94% cpu 13,576 total

}
}
$this->container->getCompiler()->getServiceReferenceGraph()->clear();
$checkedNodes =array();
Copy link
Contributor

Choose a reason for hiding this comment

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

looks unused? should it beunset($checkedNodes);?

Copy link
MemberAuthor

@nicolas-grekasnicolas-grekasNov 28, 2018
edited
Loading

Choose a reason for hiding this comment

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

could be but that wouldn't provide anything more so not really needed

Copy link
Contributor

@alexander-schranzalexander-schranzNov 28, 2018
edited
Loading

Choose a reason for hiding this comment

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

unset would avoid IDE or code style checker marking it as unused variable so nobody would remove it accidentally ;).

But I'm happy that the container now only take some seconds to build again 😄

@nicolas-grekas
Copy link
MemberAuthor

@alexander-schranz thanks for the confirmation.

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

Reviewers

1 more reviewer

@alexander-schranzalexander-schranzalexander-schranz left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.4

Development

Successfully merging this pull request may close these issues.

3 participants

@nicolas-grekas@alexander-schranz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp