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

On Sun, Feb 7, 2010 at 2:04 PM, vijay <auvija...@gmail.com> wrote:

> 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 of a mymalloc function which the application
> can use to get rid of this problem.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algoge...@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algoge...@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to