https://www.wikiwand.com/en/Methods_engineering
https://www.wikiwand.com/en/Time_and_motion_study
At some time during the industrial revolution, people worked like machines at factories. And there were other people whose job was to optimize them, so they did analysis of their space-time trajectory to find the optimal sequence of movemen, and precise path that made them maximally efficient.
See: https://www.wikiwand.com/en/Time_and_motion_study
See also: https://www.youtube.com/watch?v=Qz5PwheNZvQ
I have done similar optimizations in my life, at some points, creating a shower kata, and a cooking kata, of sorts xD