Skip to content

fix: remove benchmark referencing deleted parallel processor#70

Merged
Patel230 merged 3 commits into
mainfrom
fix/remove-parallel-benchmark
Jul 14, 2026
Merged

fix: remove benchmark referencing deleted parallel processor#70
Patel230 merged 3 commits into
mainfrom
fix/remove-parallel-benchmark

Conversation

@Patel230

Copy link
Copy Markdown
Contributor

Remove BenchmarkParallelProcessor from optimizations_benchmark_test.go which references the deleted parallel.go file.

Patel230 and others added 3 commits July 14, 2026 14:49
… panic

StreamCompressor.Reset() could be clobbered by a stale in-flight
backgroundCompress goroutine writing its result after the reset, and
Close() panicked if called twice due to an unguarded close(done).

Add an epoch counter that Reset() bumps; backgroundCompress captures
the epoch when it starts and discards its result if the epoch has
since changed, making stale writes a no-op instead of an overwrite.
Guard Close() with sync.Once so repeated calls are safe.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@Patel230 Patel230 merged commit 6718070 into main Jul 14, 2026
20 checks passed
@Patel230 Patel230 deleted the fix/remove-parallel-benchmark branch July 14, 2026 11:11
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.

1 participant