alsa-lib/src/topology
Jaroslav Kysela 472ab5db67 topology: improve the printf buffer management
The commit d04e72c9a5 introduced
the dynamic printf buffer allocation for each tplg_save_printf()
call.

Introduce 'struct tplg_buf' which carries extra information about
the temporary printf buffer and the destination buffer to save allocation
requests.

The printf buffer is also allocated using 1024 bytes chunks.

A comparison between 'alloc everyting' and 'cache+chunk alloc' for the
random picked topology file:

  1: 18,620 allocs, 18,620 frees, 7,239,688 bytes allocated
  2: 12,490 allocs, 12,490 frees, 962,568 bytes allocated

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2020-08-31 19:51:49 +02:00
..
builder.c topology: fix some gcc10 warnings (labs, signess) 2020-08-31 13:25:07 +02:00
channel.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
ctl.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
dapm.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
data.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
decoder.c topology: unify the log mechanism 2020-01-03 23:38:08 +01:00
elem.c topology: move the elem->list delete to tplg_elem_free() 2020-01-03 23:38:08 +01:00
log.c topology: unify the log mechanism 2020-01-03 23:38:08 +01:00
Makefile.am topology: unify the log mechanism 2020-01-03 23:38:08 +01:00
ops.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
parser.c topology: fix the unaligned access 2020-08-31 14:27:30 +02:00
pcm.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
save.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
text.c topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00
tplg_local.h topology: improve the printf buffer management 2020-08-31 19:51:49 +02:00