Re: [algogeeks] Can you try your own implementation of a mymalloc function

2010-02-08 Thread Sathaiah Dontula
Hi, You can allocate memory for multiple of 16 bytes ( 16 * n, where is the your desired size) + some extra memory to track which is allocated or freed, and then use your mymalloc and get the memory from allocated block and use it, this way it will be efficient I feel. Thanks, Sathaiah Dontula

[algogeeks] Can you try your own implementation of a mymalloc function

2010-02-07 Thread vijay
A certain program is identified to be low on performance due to the number of malloc calls it makes (malloc has been identified to have an inherent performance issue). However, it is known that all malloc calls that the application makes are only for 16 bytes. Can you try your own implementation o