> -----Original Message-----
> From: Steven Lariau <[email protected]>
> Sent: Wednesday, August 12, 2020 2:19 PM
> To: Eads, Gage <[email protected]>; Olivier Matz
> <[email protected]>
> Cc: [email protected]; [email protected]; Steven Lariau <[email protected]>
> Subject: [PATCH v2 1/4] test/stack: avoid trivial memory allocations
> 
> Replace the arguments array by one argument.
> All objects in the args array have the same values, so there is no need
> to use an array, only one struct is enough.
> The args object is a lot smaller, and the allocation can be replaced
> with a global variable.
> 
> The allocation of obj_table isn't needed either, because MAX_BULK is
> small. The allocation can instead be replaced with a static array.
> 
> Signed-off-by: Steven Lariau <[email protected]>
> Reviewed-by: Dharmik Thakkar <[email protected]>
> Reviewed-by: Phil Yang <[email protected]>
> Reviewed-by: Ruifeng Wang <[email protected]>

Acked-by: Gage Eads <[email protected]>

Thanks,
Gage

Reply via email to