Hello Carl,
Which MQX version are you using??
Please try to increase the data buffer size and read more at a time, this will help improve performance.
_mem_alloc(COPY_BLOCK_SIZE); // COPY_BLOCK_SIZE is 512
if (buffer == NULL) {
printf("Warning, unable to allocate copy buffer, copy will be slower\n" );
Have a great day,
Sol
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------