DEV: use Sets for setting lists. (#29584)

This makes membership checks more efficient
This commit is contained in:
Sam 2024-11-05 16:04:24 +11:00 committed by GitHub
parent 1aa836163e
commit 3b0332ef6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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