You know wha's a "very simple piece of code"? The trip odometers. Yup. All that code needs to do is subtract two numbers and display the result. But do you know what the software development clowns at Tesla have done to that "very simple piece of code"? They store and keep track of the mileage of every single 'drive', and then have code to add up all those drives to calculate the trip odometers. Every single time. It doesn't even add them up and keep a subtotal and than add the deltas. Nope, that would make too much sense. The code should be something a teenager could write in BASIC, but no, someone at Tesla had the brilliant idea of storing each individual trip and then aggregating the mileage. I couldn't believe it either, but do you know what the documented procedure is for speeding up a slow/laggy MCU1 interface: Clear out the trip odometers to clear out thousands of records of individual trips. And it works. I still can't believe this is true, but it's been documented by several trustworthy people here on TMC (and I think TeslaBjorn also claims this is true).
So no, I'm not assuming any piece of code on the MCU is a "very simple piece of code".