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

Reduce the number of files loaded at require 'pg' #513

Merged
merged 2 commits into from
Mar 27, 2023

Conversation

larskanis
Copy link
Collaborator

@larskanis larskanis commented Mar 27, 2023

And use autoload to load optional classes when they are used.

Also lazy initialize TextDecoder::Inet, TextDecoder::Numeric and TextEncoder::Numeric by autoload, to avoid require 'ipaddr' and require 'bigdecimal' if these types aren't used.

And use autoload to load optional classes when they are used.
… by autoload

.. to avoid require 'ipaddr' and 'bigdecimal' if these types are'nt used.
@larskanis larskanis merged commit dec508d into ged:master Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant