You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#23582 [Console] Improve Table performance (ro0NL)
This PR was submitted for the 3.4 branch but it was merged into the 4.1-dev branch instead (closessymfony#23582).
Discussion
----------
[Console] Improve Table performance
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | might
| New feature? | might as well
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #... <!-- #-prefixed issue number(s), if any -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!--highly recommended for new features-->
Little memory gain for console tables :)
`setRows(array_fill(0, 1000000, [str_repeat('x', 100)]))`
Before: +-20ms / +- 900mb
After: +- 20ms / +- 530mb
Next step could be to open public API for `iterable`, although we pre-iterate rows for calculation interally, it could be a nice feature :)
Commits
-------
2c9922e [Console] Improve Table performance
0 commit comments