Cache application.encoding within HTML class to avoid unnecessary calls to Config::get();
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.
Showing
Please
register
or
sign in
to comment