You can restart the Touch Bar on a Mac when it occasionally freezes or stops without restarting the entire laptop.
You can check the memory on a Mac computer in its Activity Monitor by reading a memory pressure graph. Here's how to do it.
Even MacBooks tend to start slowing down over time as newer and better hardware releases. Here's how you can get more mileage ...