mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 22:50:45 +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
|
end
|
||||||
|
|
||||||
def shadowed_settings
|
def shadowed_settings
|
||||||
@shadowed_settings ||= []
|
@shadowed_settings ||= Set.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def requires_confirmation_settings
|
def requires_confirmation_settings
|
||||||
|
@ -124,7 +124,7 @@ module SiteSettingExtension
|
||||||
end
|
end
|
||||||
|
|
||||||
def secret_settings
|
def secret_settings
|
||||||
@secret_settings ||= []
|
@secret_settings ||= Set.new
|
||||||
end
|
end
|
||||||
|
|
||||||
def plugins
|
def plugins
|
||||||
|
|
Loading…
Reference in New Issue
Block a user