contao/test — Issue #2689: Improve addToUrl function performance
Author: aschempp
Created: 2011-11-29 10:07:33+00:00
State: open
Labels: Feature, framework

The named function is currently using preg_replace, preg_split and other "heavy" functions. Recently I discovered the PHP function parse_str(), which is intended to parse a url string and return an array. There is also the function http_build_query() which does the opposite: build the query string out of an array. I suppose using these functions will provide better performance than the current solution.

Please let me know if you like a patch file before marking the ticket as "Incomplete" ;-)

--- _Originally created on November 22nd, 2010, at 11:13am (ID 2689)_