Re: [PATCH v2 5/9] perf tools: avoid a malloc for array events

From
Arnaldo Carvalho de Melo <hidden>
Date
2019-10-23 12:38:07
Also in
bpf, lkml
Reply to
Jiri Olsa, 2019-10-23
Em Wed, Oct 23, 2019 at 10:58:30AM +0200, Jiri Olsa escreveu:
On Tue, Oct 22, 2019 at 05:53:33PM -0700, Ian Rogers wrote:
quoted
Use realloc rather than malloc+memcpy to possibly avoid a memory
allocation when appending array elements.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Thanks, applied,

- Arnaldo
Thread (101 messages) 101 messages, 4 authors, last reply 2019-11-12
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help