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

fix(inflight): reduce memory footprint by using struct{} instead of bool #291

Merged
merged 1 commit into from
May 1, 2023

Conversation

dkropachev
Copy link
Collaborator

@dkropachev dkropachev commented Apr 30, 2023

Reduce memory foot print for inflight registry by using struct{} instead of bool
Also add test for shrinking

@dkropachev dkropachev requested review from fruch and vponomaryov April 30, 2023 23:03
@dkropachev dkropachev force-pushed the reduce_inflight_footprint branch from 517775f to 2f1f23e Compare May 1, 2023 01:26
@@ -82,6 +83,25 @@ func TestInflight(t *testing.T) {
}
}

//go:norace
func TestInflight_AutoShrink(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Usage of the underscore is not conventional in golang. Maybe better to replace it with, for example, With?
TestInflightWithAutoShrink ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@dkropachev dkropachev force-pushed the reduce_inflight_footprint branch from 2f1f23e to 1002c2c Compare May 1, 2023 18:52
@dkropachev dkropachev merged commit 6eea6ba into master May 1, 2023
@dkropachev dkropachev deleted the reduce_inflight_footprint branch May 1, 2023 19:37
dkropachev pushed a commit that referenced this pull request May 4, 2023
- Update packages and golang ([#296](#296))
- Fix(inflight): reduce memory footprint by using struct{} instead of bool ([#291](#291))
- Fix warmup hunging ([#292](#292))
fruch added a commit to fruch/scylla-cluster-tests that referenced this pull request May 8, 2023
Update packages and golang (scylladb/gemini#296)
Fix(inflight): reduce memory footprint by using struct{} instead of bool (scylladb/gemini#291)
Fix warmup hunging (scylladb/gemini#292)
fruch added a commit to fruch/scylla-cluster-tests that referenced this pull request May 8, 2023
Update packages and golang (scylladb/gemini#296)
Fix(inflight): reduce memory footprint by using struct{} instead of bool (scylladb/gemini#291)
Fix warmup hunging (scylladb/gemini#292)
roydahan pushed a commit to scylladb/scylla-cluster-tests that referenced this pull request May 17, 2023
Update packages and golang (scylladb/gemini#296)
Fix(inflight): reduce memory footprint by using struct{} instead of bool (scylladb/gemini#291)
Fix warmup hunging (scylladb/gemini#292)
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