3 registered members (AndrewAMD, VoroneTZ, 1 invisible),
1,176
guests, and 3
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: New, delete, and windows.h
[Re: EvilSOB]
#350317
12/15/10 12:20
12/15/10 12:20
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Question: Why malloc at all? Thats a serious performance penalty when you call this multiple times as its dispatched in many other functions including a context switch to the kernel and memory mapping. The code from EvilSOB is better, but leaks the memory. In the end it could be done perfectly on the stack.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Entire Thread
|
New, delete, and windows.h [RESOLVED *yes!*]
|
the_mehmaster
|
12/12/10 00:08
|
Re: New, delete, and windows.h
|
MasterQ32
|
12/12/10 00:12
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/12/10 00:20
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/12/10 07:18
|
Re: New, delete, and windows.h
|
MasterQ32
|
12/14/10 15:42
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/15/10 03:32
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/15/10 04:20
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/15/10 04:24
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/15/10 04:38
|
Re: New, delete, and windows.h
|
gri
|
12/15/10 06:40
|
Re: New, delete, and windows.h
|
EvilSOB
|
12/15/10 09:00
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/15/10 10:22
|
Re: New, delete, and windows.h
|
EvilSOB
|
12/15/10 11:20
|
Re: New, delete, and windows.h
|
WretchedSid
|
12/15/10 12:20
|
Re: New, delete, and windows.h
|
the_mehmaster
|
12/15/10 20:53
|
|
|