Task #60479
closedMicro optimizations in SqlParser
100%
Description
Introduced a few optimizations in the SqlParser classes of "core" and "dbal". I had the problem that many queries (e.g. updating the extension list) takes a lot more time when using dbal and adodb (oci8 driver in this case) so I tried to get a few microseconds.
Optimizations made:- Changed some regular expressions (see attached benchmark file)
- Strict comparison
- Put often used variable manipulation into a new method
- Definition of $comparatorPatterns was in a while() without any modification on it, so made it a protected member
Files
Updated by Andreas Fernandez over 10 years ago
Gerrit does not update this issue, here's the link:
https://review.typo3.org/#/c/31730/
Updated by Stefan Neufeind over 10 years ago
- Status changed from New to Under Review
Updated by Gerrit Code Review over 10 years ago
Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31730
Updated by Gerrit Code Review almost 10 years ago
Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31730
Updated by Gerrit Code Review almost 10 years ago
Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31730
Updated by Gerrit Code Review almost 10 years ago
Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31730
Updated by Gerrit Code Review almost 10 years ago
Patch set 9 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31730
Updated by Gerrit Code Review almost 10 years ago
Patch set 10 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/31730
Updated by Andreas Kienast almost 10 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 9ee40ad80b85906657cb89f9ba7dc2c6bd5eb501.