-
Notifications
You must be signed in to change notification settings - Fork 68
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
Use object file pool cache for unwind information #2595
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀
I'm looking forward to observing its effects on production environments.
@@ -451,12 +455,22 @@ func requireNoRedundantRows(t *testing.T, ut CompactUnwindTable) { | |||
} | |||
} | |||
|
|||
func objectFile(t testing.TB, path string) (o *objectfile.ObjectFile) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
func objectFile(t testing.TB, path string) (o *objectfile.ObjectFile) { | |
func objectFile(t testing.TB, path string) *objectfile.ObjectFile { |
@@ -451,12 +455,22 @@ func requireNoRedundantRows(t *testing.T, ut CompactUnwindTable) { | |||
} | |||
} | |||
|
|||
func objectFile(t testing.TB, path string) (o *objectfile.ObjectFile) { | |||
p := objectfile.NewPool(log.NewNopLogger(), prometheus.NewRegistry(), "", 1, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting the pool as a package-level variable and maybe initializing it with an init
function is better. You can share the pool between tests.
4064e9d
to
85a9c45
Compare
No description provided.