This speed problem faced me that I should have taken Microprocessor lesson at the University.
Nowadays to comment and understand your replies.
(Advanced CPU Designs: Crash Course Computer Science #9 - YouTube) I watch Computer Science from Crash Course It helps me .
Anyway I work to keep progress mcu.