Changing tabs in Terminal is very slow with lots of output

Solution 1:

Go to Terminal / Preferences / Profiles / Window / Scrollback / Limit the number of rows to:

enter image description here