[4/5] D3D8: Convert FVFs to vertex declarations

Alexandre Julliard julliard at winehq.org
Tue Jun 19 12:55:00 CDT 2007


Stefan Dösinger <stefandoesinger at gmx.at> writes:

> Obviously there is a little memory requirement for the heap management 
> structures that belong to a 0 byte allocation. But extra code to check if 
> This->decls is NULL + a HeapAlloc call need a few bytes too...
>
> I can change that to allocate one or two start entries, but I personally think 
> that 0 bytes are good to start with here.

I don't think so. Either you don't want to waste memory and you don't
allocate anything unless needed, or you want to save some work on
realloc and you allocate a reasonable buffer to start with. Allocating
zero bytes has the drawbacks of both without the benefits.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list