Not worth it to root phones nowadays. There are many 3rd party apps that can optimize your phone kahit hindi rooted.okay pa po ba mag root ng android phone? kasi dati i do it for customization and to make my phone faster.
Download F-Droid and check apps there. Or search nyo ung model ng phone nyo sa google tpos add "optimized settings" sa dulo (e.g. Redmi note 10 optimized settings)