Re: HeapAlloc()
On Sun, 23 Feb 2003 23:27:18 -0500, Wolf <wolfritz at KING.IGS.NET> wrote:
>
> OK, but are you using HEAP_ZERO_MEMORY ?
> I'd noticed in my recent tk_mem example,
> that using mem_set() to 'zero', can be painfully slow for small
> allocations for win32lib structures.
> ...overhead :(
>
> ----- Original Message ----- From: Robert Craig <rds at RapidEuphoria.com>
>> Yes.
>> For exw.exe, I'm now using HeapAlloc() on the default heap,
>> for all storage allocation.
>>
>
Wolf,
I'm using this in win32lib. That means that every acquire_mem() call will
return a pointer to zeroed memory. There is no need for a mem_set() call
unless you are clearing memory that you have already used after an
acquire_mem() call.
Are you suggesting that I should not be using HEAP_ZERO_MEMORY?
--
cheers,
Derek Parnell
|
Not Categorized, Please Help
|
|