CPU optimization: look at the datasheet until you find two assembly instructions that would produce a desirable result when their side-effects are combined.
Microcontroller optimization: look at the datasheet until you find two peripherals that would produce a desirable result when their side-effects are combined.
If you have a fediverse account, you can quote this note from your own instance. Search https://mk.absturztau.be/notes/ajx17i4rot5l02xp on your instance and quote it. (Note that quoting is not supported in Mastodon.)