If you sleep your Mac instead of shutting it down each night, then I'd suggest rebooting every 1-2 weeks. I do it about that often, mainly because my housekeeper bumps it >:-(
Other than that, I'd suggest AppZapper to continue what Flash Fire was just saying. If you want, fire up Activity Monitor and check what is taking up a lot of resources, if it is a specific app, just end it. The best thing to do, of course, is to buy more RAM. In my experience, both Rosetta and X11 apps run excruciatingly slow.