Can the following code be optimized using inline-assembly or in any other way? This portion is in a loop that runs many 10s of thousands of times which causes unacceptable delay. On each loop iteration subRecord is a string of variable size and the idea is to append the new subRecord to sRecord after dynamically re-sizing sRecord. It is obvious that it gets slower as the loop count increases.
sRecord = (char*)realloc(sRecord,_msize(sRecord) + (sizeof(char)*(strlen(subRecord))));