You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorcery does not have any lazy loading - everything is always loaded when the gem is included, including test helpers, submodules that may or may not be used, and protocols that is not necessary.
If we take a look at the load times using a tool like bumbler (gem install bumblerbumbler --all), we see that sorcery takes almost as long to load as rails:
$ bumbler --all
...
844.13 sorcery
922.26 rails
I believe load times can be improved if we consider using autoloading like zeitwerk.
The text was updated successfully, but these errors were encountered:
Yup, also run into other issues due to the way it forcibly requires everything. v1 rework uses zeitwerk, but is still waiting on completion (I have so little time it's not even funny 🙃 )
Configuration
0.16.5
3.1.2
Rails 6.1.6
MacOS
Sorcery does not have any lazy loading - everything is always loaded when the gem is included, including test helpers, submodules that may or may not be used, and protocols that is not necessary.
If we take a look at the load times using a tool like bumbler (
gem install bumbler
bumbler --all
), we see that sorcery takes almost as long to load as rails:I believe load times can be improved if we consider using autoloading like zeitwerk.
The text was updated successfully, but these errors were encountered: