[TYPO3-core] RFC Bug #11033: Optimize hook to indexed_search that checks for a running crawler task
Rupert Germann
rupi at gmx.li
Mon Jun 8 00:05:29 CEST 2009
hi,
+1 by reading and testing
(did no profiling, too, because the improvement is obvoius)
greets
rupert
Steffen Kamper wrote:
> Hi,
>
> +1 by reading and testing
>
> I did no profiling, but it works same as before.
>
> vg Steffen
>
> Oliver Hader schrieb:
>> This is an SVN patch request.
>>
>> Type: Bugfix
>>
>> Bugtracker references:
>> http://bugs.typo3.org/view.php?id=11033
>>
>> Branch: Trunk
>>
>> Problem:
>> In indexed_search there's a hook defined that gets called from
>> TSFE->headerNoCache() to determine whether the crawler is currently
>> running. However, to do that simple check, the whole indexer PHP class
>> file is loaded which could be avoided.
>>
>> Solution:
>> Extracted the method required for the mentioned hook to a slim separate
>> file.
>>
>> Notes:
>> Profiling tests show that this call took 10ms before and 1ms afterwards.
>>
>> olly
>>
More information about the TYPO3-team-core
mailing list