Skip to content

reduce GetIncidents resource usage - #276

Merged
MovieStoreGuy merged 4 commits into
signalfx:masterfrom
michael-burt:agent/reuse-incident-response-buffer
Aug 20, 2026
Merged

MovieStoreGuy merged 4 commits into
signalfx:masterfrom
michael-burt:agent/reuse-incident-response-buffer

Conversation

@michael-burt

Copy link
Copy Markdown
Contributor

Through profiling I found two performance issues in GetIncidents (https://github.com/signalfx/signalfx-go/blob/v1.63.0/incident.go#L39-L58).

  1. resp.Body is never closed - https://github.com/signalfx/signalfx-go/blob/v1.63.0/incident.go#L39-L58
  2. A new json.Decoder is created for every request - https://github.com/signalfx/signalfx-go/blame/v1.63.0/incident.go#L32

@michael-burt michael-burt changed the title Reduce GetIncidents resource usage Draft: Reduce GetIncidents resource usage Aug 19, 2026
Comment thread incident.go
@michael-burt
michael-burt marked this pull request as ready for review August 19, 2026 16:07
@michael-burt
michael-burt requested review from a team as code owners August 19, 2026 16:07
@michael-burt michael-burt changed the title Draft: Reduce GetIncidents resource usage reduce GetIncidents resource usage Aug 19, 2026
@MovieStoreGuy
MovieStoreGuy merged commit 1cecaa2 into signalfx:master Aug 20, 2026
2 checks passed
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