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

symbolizer: reduce the number of debuginfo copies #5330

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

danipozo
Copy link

Check the existence of debuginfo files in the temporary directory to reduce the number of copies on each request, which drives high disk usage and latency.

@danipozo danipozo requested a review from a team as a code owner November 27, 2024 16:18
Copy link
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this needs a go fmt as well, otherwise the strategy lgtm

return "", nil, nil, fmt.Errorf("create temp file: %w", err)
}

fmt.Printf("Copying %s to tmp file %s\n", buildID, f.Name())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we replace this with a regular log statement?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@danipozo danipozo force-pushed the reduce-debuginfo-copies-when-symbolizing branch from a2198b8 to 4c37617 Compare December 12, 2024 10:12
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