I have a page where _filter_url() is 30% of the load time. The content has lots of markup and the $chunks array in _filter_url() ends up with over 5000 items. A simple change from preg_match() to strcasecmp() reduces my page load time for _filter_url() to only 20% of the page time, from 190msec to 120msec.
Attachment | Size | Status | Test result | Operations |
---|---|---|---|---|
filter-url-1.patch | 544 bytes | Ignored: Check issue status. | None | None |