Skip to content

test: refill the shared array pool before measuring Snappy allocations - #163

Closed
unsafePtr wants to merge 1 commit into
Kuinox:masterfrom
unsafePtr:stable-snappy-allocation-tests
Closed

unsafePtr wants to merge 1 commit into
Kuinox:masterfrom
unsafePtr:stable-snappy-allocation-tests

Conversation

@unsafePtr

Copy link
Copy Markdown
Contributor

Runing tests are flaky if memory utilization is high (mine is typically >90%). This one helps to avoid it, as ArrayPool.Shared is emptying under high memory pressure.

@github-actions

Copy link
Copy Markdown

Public API unchanged.

@Kuinox

Kuinox commented Oct 23, 2026

Copy link
Copy Markdown
Owner

Somehow I didn't had notification enabled on my own repo so I'm seeing this only now...

What surprise me more is that Snappy does allocate for now sadly, so theses tests shouldn't be flaky but fail.

I was waiting for this.
I'll look at this over the weekend.

@Kuinox

Kuinox commented Oct 24, 2026

Copy link
Copy Markdown
Owner

@unsafePtr I will remove snappy from the allocations tests instead, until we can have 0 allocs on them.

@Kuinox

Kuinox commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Thanks for the report, it should be fixed with #164.

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