Re: [PATCH libdrm 04/10] xf86drm: Allocate drmDevicePtr's on stack

2018-06-28 Thread Emil Velikov
Hi Rob, On 28 June 2018 at 13:52, Robert Foss wrote: > Hey Emil, > > On 2018-06-25 19:36, Emil Velikov wrote: >> >> From: Emil Velikov >> >> Currently we dynamically allocate 16 pointers and reallocate more as >> needed. >> >> Instead, allocate the maximum number (256) on stack - the number is

Re: [PATCH libdrm 04/10] xf86drm: Allocate drmDevicePtr's on stack

2018-06-28 Thread Robert Foss
Hey Emil, On 2018-06-25 19:36, Emil Velikov wrote: From: Emil Velikov Currently we dynamically allocate 16 pointers and reallocate more as needed. Instead, allocate the maximum number (256) on stack - the number is small enough and is unlikely to change in the foreseeable future. This

[PATCH libdrm 04/10] xf86drm: Allocate drmDevicePtr's on stack

2018-06-25 Thread Emil Velikov
From: Emil Velikov Currently we dynamically allocate 16 pointers and reallocate more as needed. Instead, allocate the maximum number (256) on stack - the number is small enough and is unlikely to change in the foreseeable future. This allows us to simplify the error handling and even shed a