- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am working on Cypress FX3 USB3.0.I am using EZ USB FX3 SDK/1.3/Application/cpp/Streamer.Now in streamer.h code ,there is one function called "Xferloop()".In this function, I collected the data of "buffer" character by character basis and stored in "myfile.txt".The throughput of the streamer utility decreased from 395MBytes per sec to 110MBytes per sec because of writing and saving data into the myfile(I used ofstream as output method for writing data into myfile.txt).How to increase this reduced throughput.Please help.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
This is an expected behavior since the host application is busy writing the data onto the file and is not able to issue further IN requests to the device. To improve the throughput, you can implement the writing of data on to the disk in a separate thread instead of performing it in XferLoop() function block.
Best regards,
Srinath S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
This is an expected behavior since the host application is busy writing the data onto the file and is not able to issue further IN requests to the device. To improve the throughput, you can implement the writing of data on to the disk in a separate thread instead of performing it in XferLoop() function block.
Best regards,
Srinath S