Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Hi all,
I recently tried to log data from a UM6 orientation sensor to a local file on mbed NXP LPC1768 via UART and ran into problems with it because it didn't like how fast I was trying to do it (every 10ms). My supervisor mentioned that multiple printf functions can really slow a program down, so I consolidated all of them into one. I also ended up log data to an SD card instead, which solve my problem.
This has got me wondering about what code in general is slow? Does anyone have any tips and tricks for speeding up code?
Nathan