anchore / anchore/syft

Set GOMAXPROCS when parallelism is configured

Open
#3,924 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
9.6k
Forks
954
Avg merge
23h 27m
Merged PRs (30d)
48

Description

**What would you like to be added**:
In order to make behavior more predictable, if a user configures parallelism, it might be a good idea to set [GOMAXPROCS](https://pkg.go.dev/runtime#GOMAXPROCS) to limit the number of system threads.

**Why is this needed**:
More predictable performance characteristics.

**Additional context**:
This stemmed from a [discussion on discourse](https://anchorecommunity.discourse.group/t/limiting-the-number-of-threads-used/442).

Contributor guide

Open the contributing guide

Research direction

No source file or test is named. Start by tracing where configured parallelism is parsed and applied, then read the linked GOMAXPROCS documentation and discourse discussion. Done means the configured behavior is implemented with clear semantics and verified by relevant tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.