In the XenForo_Link::buildPublicLink and in the XenForo_Link::buildIntegerAndTitleUrlComponent code path; includeTitleInUrls & routeFiltersOut are both fetched directly out of the Zend Registry without an class-local caching.
Commonly hit options such as_useFriendlyUrls & _romanizeTitles & _indexRoute use a class static variable, and this has a minor performance improvement over calling XenForo_Application::Get() in what is effectively a tight loop.
While the overhead is not that great, buildPublicLink is called a lot. And the saving will obviously depend on the page.
Commonly hit options such as_useFriendlyUrls & _romanizeTitles & _indexRoute use a class static variable, and this has a minor performance improvement over calling XenForo_Application::Get() in what is effectively a tight loop.
While the overhead is not that great, buildPublicLink is called a lot. And the saving will obviously depend on the page.