mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 05:21:50 +08:00
DEV: use Sets for setting lists. (#29584)
This makes membership checks more efficient
This commit is contained in:
parent
1aa836163e
commit
3b0332ef6c
|
@ -96,7 +96,7 @@ module SiteSettingExtension
|
|||
end
|
||||
|
||||
def shadowed_settings
|
||||
@shadowed_settings ||= []
|
||||
@shadowed_settings ||= Set.new
|
||||
end
|
||||
|
||||
def requires_confirmation_settings
|
||||
|
@ -124,7 +124,7 @@ module SiteSettingExtension
|
|||
end
|
||||
|
||||
def secret_settings
|
||||
@secret_settings ||= []
|
||||
@secret_settings ||= Set.new
|
||||
end
|
||||
|
||||
def plugins
|
||||
|
|
Loading…
Reference in New Issue
Block a user