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

pkg/runtime: Prevent allocations from searching symbol tables #1901

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

brancz
Copy link
Member

@brancz brancz commented Aug 2, 2023

Why?

Before this patch searching symbol tables allocated a lot of memory in one allocation which caused heap to spike dramatically at the start.

What? / How?

Same strategy as in xyproto/ainur#5

Remove big bulk allocation.

Test Plan

Haven't tested other than compiling.

@brancz brancz requested a review from a team as a code owner August 2, 2023 12:31
Copy link
Contributor

@javierhonduco javierhonduco left a comment

Choose a reason for hiding this comment

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

LGTM

Before this patch searching symbol tables allocated a lot of memory in one allocation which caused heap to spike dramatically at the start.
@brancz brancz enabled auto-merge August 2, 2023 13:25
@brancz brancz merged commit e1877aa into main Aug 2, 2023
22 checks passed
@javierhonduco javierhonduco deleted the symbol-search-alloc branch August 2, 2023 17:14
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.

None yet

3 participants