[CLEANUP] SqlParser 30/31730/11
authorAndreas Fernandez <andreas.fernandez@aspedia.de>
Wed, 23 Jul 2014 07:05:08 +0000 (09:05 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 15 Jan 2015 13:57:10 +0000 (14:57 +0100)
commit9ee40ad80b85906657cb89f9ba7dc2c6bd5eb501
treea9334f918bdbc598fc273f2c97bd265ce1c4def8
parent73d7e226345bc47ced13eaec50378ab9c8d504de
[CLEANUP] SqlParser

Introduce a few optimizations in
the SqlParser classes of "core" and "dbal".

* Change some regular expressions (see benchmark file in forge)
* Strict comparison
* Put often used variable manipulation into a new method
* Definition of $comparatorPatterns was in a while() without any
  modification on it, so make it a protected member

Resolves: #60479
Releases: master
Change-Id: Ica1d3686e30835b7540e159bb5a34127d206f054
Reviewed-on: http://review.typo3.org/31730
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php
typo3/sysext/core/Classes/Database/SqlParser.php
typo3/sysext/dbal/Classes/Database/SqlParser.php