Skip to content

Conversation

johnatannvmd
Copy link
Contributor

@johnatannvmd johnatannvmd commented Aug 4, 2016

Q A
Branch? 3.1
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
License MIT

Remove unnecessary block calling for choices without "choice_attr" option. This check gain the performance on a large datasets.

@johnatannvmd
Copy link
Contributor Author

will remake pull request against lowest branch where bug exists

fabpot added a commit that referenced this pull request Aug 17, 2016
…ss before calling block('attributes') (Evgeniy Tetenchuk, johnatannvmd)

This PR was merged into the 2.7 branch.

Discussion
----------

[TwigBundle] Add a check for choice's attributes emptiness before calling block('attributes')

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

Remove unnecessary block calling for choices without "choice_attr" option. This check gain the performance on a large datasets.

Previous Pull to master #19527

Commits
-------

bf6748d Move space from the before 'if' to the after 'if'
d1cf4d1 [TwigBundle] Add a check for choice's attributes emptiness before calling block('attributes')
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.

2 participants