Project

General

Profile

Actions

Bug #63750

closed

Bug #63692: Memory consumption while bulk inserting

Avoid calling getUserObj in DataHandler->checkValue_input_Eval

Added by Stephan Großberndt over 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2014-12-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

If the eval field is empty in a TCA input definition there is no NULL or empty check:

default:
    $evalObj = GeneralUtility::getUserObj($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tce']['formevals'][$func] . ':&' . $func);
    if (is_object($evalObj) && method_exists($evalObj, 'evaluateFieldValue')) {
        $value = $evalObj->evaluateFieldValue($value, $is_in, $set);
    }

If $func is empty, this leads to a call to unnecessary call to GeneralUtility::getUserObj(':&');

Actions

Also available in: Atom PDF