author | Adrian Salido <salidoa@google.com> | |
Mon, 9 Jul 2018 20:31:11 +0000 (13:31 -0700) | ||
committer | Adrian Salido <salidoa@google.com> | |
Mon, 9 Jul 2018 23:28:12 +0000 (16:28 -0700) | ||
commit | c5371788edf2e8d8cea7365475ce89ed786c6320 | |
tree | 913e1b5b348ceba02989eae9bc6d8dac5334ecd4 | tree | snapshot (tar.xz tar.gz zip) |
parent | 8965152a5b26a0063c9070d42f95769ddc5b97c3 | commit | diff |
libdrm: reduce number of reallocations in drmModeAtomicAddProperty
When calling drmModeAtomicAddProperty allocation of memory happens as
needed in increments of 16 elements. This can be very slow if there are
multiple properties to be updated in an Atomic Commit call.
Increase this to as many as can fit in a memory PAGE to avoid having to
reallocate memory too often.
Bug: 111047515
Change-Id: I043db1e7608b0a606adf1a6e468c90734372f363
When calling drmModeAtomicAddProperty allocation of memory happens as
needed in increments of 16 elements. This can be very slow if there are
multiple properties to be updated in an Atomic Commit call.
Increase this to as many as can fit in a memory PAGE to avoid having to
reallocate memory too often.
Bug: 111047515
Change-Id: I043db1e7608b0a606adf1a6e468c90734372f363
xf86drmMode.c | diff | blob | history |