You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
====================================================================================================
append to slice `res` with non-zero initialized length at https://github.com/aquasecurity/tracee/blob/main/pkg/bufferdecoder/eventsreader.go#L384:[9](https://github.com/alingse/go-linter-runner/actions/runs/9242979001/job/25426506045#step:4:10)
====================================================================================================
the res := make([]byte, max) should be res := make([]byte, 0, max)
the origin way is no help to optimize memory allocation, the append still cause an extra allocation
The text was updated successfully, but these errors were encountered:
I was running github actions to run linter makezero for top github golang repos.
see issues alingse/go-linter-runner#1
and the github actions output https://github.com/alingse/go-linter-runner/actions/runs/9242979001/job/25426506045
the
res := make([]byte, max)
should beres := make([]byte, 0, max)
the origin way is no help to
optimize memory allocation
, the append still cause an extra allocationThe text was updated successfully, but these errors were encountered: