Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Simplify lazy-loaded SASL::{Name}Authenticator registration #168

Merged
merged 1 commit into from
Sep 10, 2023

Conversation

nevans
Copy link
Collaborator

@nevans nevans commented Sep 10, 2023

In addition to selecting the constant based on the name, this also lazy loads the authenticator definitions. Most authenticators are never used, so this avoids the cost of loading them all.

@nevans nevans changed the title ♻️ Simplify SASL::{Name}Authenticator registration ♻️ Simpler lazy-loaded SASL::{Name}Authenticator registration Sep 10, 2023
In addition to selecting the constant based on the name, this also lazy
loads the authenticator definitions.  Most authenticators are never
used, so this avoids the cost of loading them all.
@nevans nevans force-pushed the lazy-load-sasl-authenticators branch from 74c124d to cf5f3d9 Compare September 10, 2023 01:41
@nevans nevans changed the title ♻️ Simpler lazy-loaded SASL::{Name}Authenticator registration ♻️ Simplify lazy-loaded SASL::{Name}Authenticator registration Sep 10, 2023
@nevans nevans merged commit ad5cbfc into ruby:master Sep 10, 2023
11 checks passed
@nevans nevans deleted the lazy-load-sasl-authenticators branch September 10, 2023 01:43
@nevans nevans added the SASL 🔒 Authentication and authentication mechanisms label Sep 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SASL 🔒 Authentication and authentication mechanisms
Development

Successfully merging this pull request may close these issues.

1 participant