This app was mentioned in 11 comments, with an average of 1.64 upvotes
Most of MIUIs idiotic ways are actually the result of innovation, as MIUI started as a custom rom. They added new features, some of which Google eventually implemented in the stock android as well.
The memory optimizations were a pretty good feature when android didn't have anything like that. (Does anyone even remember JuiceDefender anymore?)
Problem is, Xiaomi refuses to switch over. For example, MIUI still uses their custom DND mode, which doesn't work with any of the official Android API calls and you can't, therefore, control it with Tasker of IFTTT or anything like that.
Same goes for the lock screen, vibration toggles, the goddamn notifications and such.
Have a look at Juice Defender as well. It will monitor the Battery life and can extend the battery life.
JuiceManager can do this too, and I think it's ways easier than Tasker. https://play.google.com/store/apps/details?id=com.latedroid.juicedefender
JuiceDefender because disabling my mobile data is the way I save battery.
/s In reality I find these kinds of apps snake oil/borderline killing smartphone functionality
I use: https://play.google.com/store/apps/details?id=com.latedroid.juicedefender I'm not sure if it needs root but I find it gets me through long trips. It shuts off data and only connects every 15 min. Hope this helps.
Install Juice Defender and put it on aggressive settings. This app can disable your 4G/3G when the screen isn't active, prevent background apps consuming too much power like Facebook and a whole heap of other settings. Been using it for years now and always saves my battery.
edit
Since when is recommending an app that is created to save your battery and has a rating of 4.4 out of 5 worthy of being downvoted, anyone care to explain? I don't understand this site sometimes.