intel/perf: use a function to do common allocations
authorDave Airlie <airlied@redhat.com>
Thu, 20 Jan 2022 01:36:16 +0000 (11:36 +1000)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Jan 2022 06:41:17 +0000 (06:41 +0000)
commitacc2d08cf908a5d25cf5491f7602901d2c310262
treea191250d4e03ddbe784d3763ac8b3bf262f8fb85
parent521ede8451df846045d7bc41f44311ace2fddbb5
intel/perf: use a function to do common allocations

This cuts the compile time down for this file on my ryzen from
real 1m4.077s
to
real 0m30.827s

Reviewed-by: Emma Anholt <emma@anholt.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14630>
src/intel/perf/gen_perf.py