17

Be efficient.

Throughout working on robots, I have learned a lot about efficiency. I now continually check the assembled output of my code to see if I can reduce the instruction count or make things faster in other ways.

Comments
  • 3
    Trying to outsmart llvm?
  • 1
    @succcubbus ya. Sometimes.
  • 1
    Be careful no to do too much preoptimization.

    I prefer readabillity over efficiency, but optimize where performance is too slow and measure the improvement.
  • 2
    @Ederbit I generally agree that readability is better, but we do embedded stuff on robots.. so we are restricted to things like completing all our code in under 20ms

    And also, we don't have the most powerful hardware to work with either.
Add Comment