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
The last 3 commands are summing all packages: 1.149 ms clock, 921448 bytes, and 5866 allocs.
Describe the solution you'd like
Reduce package init costs.
Additional context
I'd recommend using sync.Once to defer creating awsPartition and friends. The Go team uses this technique to defer building a large HTML entities map until it's needed.
The text was updated successfully, but these errors were encountered:
Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
Is your feature request related to a problem? Please describe.
While testing the new init cost debugging output in go 1.16, I found that
aws/endpoints
has the highest package-level memory cost out of Hugo's many dependencies.The last 3 commands are summing all packages: 1.149 ms clock, 921448 bytes, and 5866 allocs.
Describe the solution you'd like
Reduce package init costs.
Additional context
I'd recommend using
sync.Once
to defer creatingawsPartition
and friends. The Go team uses this technique to defer building a large HTML entities map until it's needed.The text was updated successfully, but these errors were encountered: