mirror of
https://github.com/discourse/discourse.git
synced 2026-08-09 18:01:48 +08:00
* Prevent unnecessary Hash#merge in DefaultsProvider#all_clean, Fixes an unnecessary merge which can sometimes cause performance overhead when calling SiteSetting.defaults_provider.all_clean. We don't need to merge the defaults when locale provided is the same as the default locale * Do not check can_lazy_load_categories? in loop, This is a small perf optimization, we don't need to check can_lazy_load_categories? for every category in the site, which looks at the user's groups and upcoming changes every time, we just need to do it once. |
||
|---|---|---|
| .. | ||
| db_provider_spec.rb | ||
| defaults_provider_spec.rb | ||
| dependency_graph_spec.rb | ||
| deprecated_settings_spec.rb | ||
| hidden_provider_spec.rb | ||
| local_process_provider_multisite_spec.rb | ||
| local_process_provider_spec.rb | ||
| type_supervisor_spec.rb | ||
| validations_spec.rb | ||
| yaml_loader_spec.rb | ||