[PATCH 2/4] winevulkan: Replace temp heap_allocs with alloca

Stefan Dösinger stefandoesinger at gmail.com
Fri Mar 6 04:09:04 CST 2020


Am 05.03.20 um 23:25 schrieb Andrew Wesie:
> Would it make sense to keep the heap allocation as a slow-path if the
> assumption about the allocation size is wrong? For example, if count
> is less than 32 use alloca(), otherwise use the heap to avoid a stack
> overflow.
Similar suggestion: If we keep the heap codepath anyway and have a max
alloca size, would it make sense to have a fixed size local buffer
instead of alloca for the fast case and heap_alloc if something huge
comes along?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20200306/1738b123/attachment.sig>


More information about the wine-devel mailing list