#52374Editing a sys_filemount is very slow
Description
When editing a filemount as popup window from the edit form of a be_group, the form takes about 9 sec to show up.
xhprof shows that this method is responsible for this amount of time:
TYPO3\CMS\Core\Resource\Service\UserFileMountService::renderTceformsSelectDropdown
Info
- My list of sys_filemounts contains 2600 entries
- I see 20 calls to TYPO3\CMS\Core\Resource\Folder::getSubfolders taking 4,728,752 ms
- After 2nd recursion, still 298 calls to TYPO3\CMS\Core\Resource\Service\UserFileMountService::getSubfoldersForOptionList taking 4,505,079 ms
Actually there is much recursion but it’s always TYPO3\CMS\Core\Resource\Folder::getSubfolders that eats so much time