Skip to content

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant