I came across this interesting term in the book called "Thinking, Fast and Slow" by Daniel Kahnemann. The human brain has limited resources and some 'things' take more of that resource, the depletion of that resource is called Ego Depletion. The interesting thing about this, is that, when we do a task that we don't like doing, then it consumes more energy vis-a-vis doing a task that we like doing. The other takeaway without energy left in your brain, your judgement will be skewed for the worse. In that book, the author mentions multiple amazing experiments that were done to prove that thesis about 'ego depletion'.
Putting these together, some of the things we can do to be more efficient in our tasks are:
Do the toughest task first, in a day. Task could be toughest because it doesn't interest you, or toughest because it takes a lot of thinking.
Eat well and keep your body energized, so that your brain is not depraved of energy to make logical decisions.
This is the book.