| Sign In/My Account | View Cart |
| Article: |
Knowing When to Let Go: Better Living Through Memory Management | |
| Subject: | What about preallocated memory? | |
| Date: | 2003-06-11 16:10:11 | |
| From: | anonymous2 | |
|
Many apps tend to exhaust the CPU with simple memory allocations. Especially apps that allocate and free memory dynamically upon events (say,an incoming network packet). Working with preallocated memory and reusing this memory without going through the system calls free and malloc often enhances the performance of these apps dramatically. It's a bit more complex, but it's worth your while if you have this kind of app. |
||
Showing messages 1 through 3 of 3.
There are problems that require pre-allocation, but they are few, and far between.