Skip to content

Eagerload code#350

Merged
daddyz merged 1 commit intodaddyz:masterfrom
byroot:eagerload
Mar 15, 2026
Merged

Eagerload code#350
daddyz merged 1 commit intodaddyz:masterfrom
byroot:eagerload

Conversation

@byroot
Copy link
Copy Markdown
Contributor

@byroot byroot commented Feb 12, 2026

While I understand that autoload is convenient, it's not good for production performance and it cause the code to be loaded the first time the constant is referenced, in many case that means as part of the first request, and cause latency spikes on deploy.

It's better to immediately require all the code, especially since phonelib is relatively small.

While I understand that `autoload` is convenient, it's not good for
production performance and it cause the code to be loaded the first
time the constant is referenced, in many case that means as part
of the first request, and cause latency spikes on deploy.

It's better to immediately require all the code, especially since
phonelib is relatively small.
@daddyz daddyz merged commit aeabda1 into daddyz:master Mar 15, 2026
10 of 11 checks passed
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.

2 participants