L
Lianjun Jiang
Hi,
In my code, I need to concat two buffer into one. I take following
steps:
1 malloc a new space
2 copy two buffers over,
3. and then free the originial two buffers.
I put timer on each step. And I found that under some stress
condition(cpu intensive, lots of memory used), the last step took a
lot more time than step 1 and 2. Did anyone know what could be the
reason?
In my code, I need to concat two buffer into one. I take following
steps:
1 malloc a new space
2 copy two buffers over,
3. and then free the originial two buffers.
I put timer on each step. And I found that under some stress
condition(cpu intensive, lots of memory used), the last step took a
lot more time than step 1 and 2. Did anyone know what could be the
reason?