You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • The other suggestions also will help but

    Optimisations that end up not calling the function at all are probably going to be very significant :)

    For measuring maybe the DWT CYCCNT register can be used.

    Maybe... IMO the best way to benchmark this is to write enough data that it takes a noticeable amount of time (you can do it with CS not asserted so it's ignored) and then measure that.

    But just in general, based on your other comments: I'm all for optimising flash memory access, graphics, and Espruino in general - but if this is specifically for a single-purpose function for blitting a small portion of screen it may not be something I'd want to pull into Bangle.js, given we're currently using pretty much all the available flash memory.

About

Avatar for Gordon @Gordon started