I recently found my MacBook Air 2017 becomes slower after upgrading it to the latest macOS. And, now it's too slow when I write code in vsCode and if I switch screens then it's laggy sometimes. I have already tried to upgrade vsCode & macOS also removed extensions but nothing changes. I have seen some laptops with the same configuration and ubuntu installed on them work fine with the same project. So, I think the newer version of macOS is good for newer models.
So, should I downgrade my macOS to the previous version which was installed in it when I bought it?
MacBook Air 2017: 1.8 GHz Dual-Core Intel Core i5 with 8 GB 1600 MHz DDR3
Memory usage: Activity Monitor