[BUGFIX] Avoid getUserObj-call for eval 'null' and non-existing hooks 87/35287/10
authorStephan Großberndt <stephan@grossberndt.de>
Thu, 11 Dec 2014 09:32:49 +0000 (10:32 +0100)
committerMarkus Klein <klein.t3@reelworx.at>
Thu, 22 Jan 2015 21:02:20 +0000 (22:02 +0100)
commit61878ada16d94eb497fcdb3bc66d014ca467e541
tree0b3495e09a6167fc9476e224cb582873d296d9cc
parentaf3809c2cf44707cebbf7ad7dfc22bbd0b8c3b9c
[BUGFIX] Avoid getUserObj-call for eval 'null' and non-existing hooks

If the 'eval' definition of a TCA input or text does contain 'null' or
a value without a matching hook, we skip the useless call to
GeneralUtility::getUserObj().

This improves performance especially for bulk inserts with many text
fields.

Resolves: #63750
Releases: master, 6.2
Change-Id: I328f6b3f5e737fa472f7385afc0a2407d16eb1f8
Reviewed-on: http://review.typo3.org/35287
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Tested-by: Andreas Fernandez <andreas.fernandez@aspedia.de>
Reviewed-by: Markus Klein <klein.t3@reelworx.at>
Tested-by: Markus Klein <klein.t3@reelworx.at>
typo3/sysext/core/Classes/DataHandling/DataHandler.php