perf(dpkg): emptyLineSplit
allocates causing some unnecessary memory allocation in this scanner
#7064
Closed
paulcacheux
started this conversation in
Bugs
Replies: 1 comment
-
fixed by #7065 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
The function
emptyLineSplit
used to split files into empty line separated groups ofkey: value
lines allocates and this can cause some unnecessary memory allocation. This was discovered through profiling of some code calling trivy.Desired Behavior
This function should not allocate
Actual Behavior
This function allocates by doing some bytes to string conversion in
Reproduction Steps
Target
Filesystem
Scanner
Vulnerability
Output Format
None
Mode
None
Debug Output
Operating System
debian based linux
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions