Project

General

Profile

Actions

Bug #53862

closed

Epic #55070: Workpackages

Epic #55065: WP: Overall System Performance (Backend and Frontend)

Bug #52949: Speed decrease since 4.5

isValidUrl idna converts whole URI instead of domain only

Added by Michiel Roos almost 11 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Performance
Target version:
Start date:
2013-11-22
Due date:
% Done:

100%

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

Description

The expensive idna_convert is called from isValidUrl. Instead of feeding it just the domain part, it converts the whole URI.

When feeding it just the domain part, a great speed gain can be had.

This patch breaks apart the URI using parse_url(), converts the domain part, then re-assembles the uri using HttpUtility::buildUrl().

Please find profiling runs attached for:
  • /typo3/ (login screen)
  • /typo3/backend.php
  • /typo3/mod.php?M=web_list

Files

backend_php.png (34.2 KB) backend_php.png Michiel Roos, 2013-11-22 12:05
login_screen.png (34.4 KB) login_screen.png Michiel Roos, 2013-11-22 12:05
web_list.png (34.7 KB) web_list.png Michiel Roos, 2013-11-22 12:05
fu_idna.v3.diff (1.01 KB) fu_idna.v3.diff Michiel Roos, 2013-11-22 12:05
fu_idna_4.7.patch (1.07 KB) fu_idna_4.7.patch patch for 4.7 branch Michiel Roos, 2013-11-22 13:01
patch_set_6_backend_php.png (36.8 KB) patch_set_6_backend_php.png Michiel Roos, 2013-11-22 15:52
inValidFiles_login_page.txt (6.48 KB) inValidFiles_login_page.txt Non valid urls tested again from the login page Michiel Roos, 2013-11-23 01:06
Screen_Shot_2013-11-23_at_12.08.54.png (38.9 KB) Screen_Shot_2013-11-23_at_12.08.54.png Patch set 14 performance measurement Michiel Roos, 2013-11-23 12:09
TYPO3_CMS_Login__6.2.master.workbench.local___Workbench-7.jpg (139 KB) TYPO3_CMS_Login__6.2.master.workbench.local___Workbench-7.jpg http://例え.テスト/typo3/ Michiel Roos, 2013-11-26 19:51
Screen_Shot_2013-11-26_at_20.03.58.png (102 KB) Screen_Shot_2013-11-26_at_20.03.58.png Michiel Roos, 2013-11-26 20:05
Patch_25_backendPhp_unpopulated_Cache_dir.png (35.4 KB) Patch_25_backendPhp_unpopulated_Cache_dir.png Michiel Roos, 2013-12-20 11:26
Patch_25_dbList_siteRoot_populated_Cache_dir.jpg (45.4 KB) Patch_25_dbList_siteRoot_populated_Cache_dir.jpg Michiel Roos, 2013-12-20 11:26
Patch_25_login_unpopulated_Cache_dir.jpg (43.6 KB) Patch_25_login_unpopulated_Cache_dir.jpg Michiel Roos, 2013-12-20 11:26

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #55475: Error when saving Domain system recordClosed2014-01-30

Actions
Related to TYPO3 Core - Bug #55713: GeneralUtility' not foundClosedMarkus Klein2014-02-06

Actions
Actions

Also available in: Atom PDF