Project

General

Profile

Actions

Task #60479

closed

Micro optimizations in SqlParser

Added by Andreas Fernandez over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-07-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Sprint Focus:

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

regex-bench.log (3.5 KB) regex-bench.log Andreas Fernandez, 2014-07-22 22:21
Actions

Also available in: Atom PDF