Very slow local development on Mac

Dear Community,
I am using Macbook pro. The local development has become super slow and annoying. Running the debugger on vscode is a nightmare. Anyone else facing this issue or have a solution on how to speed up?

Specs:
macOS Montery 12.5.1
i5 2020
16GM RAM

Kind Regards,
Ahmad

run htop and check what’s consuming the most CPU or memory.

That is the tricky part. htop looks fine.

You could try using glances which is better than htop and has more info.

it will even show high memory consumption as well