html.php
10.4 KB
-
Cache application.encoding within HTML class to avoid unnecessary calls to Config::get(); · 6e44b408
Calling the "Config::get('application.encoding')" is expensive and within a large form (using the form builder) having it requested multiple times can result in a significant performance drag. Caching this value reduced calls to Config:get within our project from 1200+ to 125. All core tests appear to pass with this change in place.
thybag committed