Commit Graph
4 Commits
Author SHA1 Message Date
thybag aa32e4cf72 Rename static::get_encoding() method to static::encoding() to fit better with style. 2012-09-09 14:24:52 +01:00
thybag f55bb85c6f Update to conform better with laravels coding style. 2012-09-05 09:49:04 +01:00
thybag a9be66d41a Refactor changes into single get_encoding() method within the HTML Class (in order to remove duplication of logic). All tests continue to pass. 2012-09-05 09:35:54 +01:00
thybag 6e44b4080a 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.
2012-09-04 16:09:56 +01:00