Earlier quoted context omitted.
Yet it still swaps to disk ALL THE TIME and a new Terminal.app window can take up to 5 seconds to open. That's not swapping. That delay is /usr/bin/login searching the system logs so that it can display the date and time of your last login. Create a .hushlogin file in your home directory to prevent that.
Two other things that can make OSX terminal launching slow: 1. The default use of /usr/libexec/path_helper to manage your $PATH .[1] 2. An accumulation of log files in /var/log/asl .[2] For (1), I just edit /etc/profile and disable path_helper altogether. I set the PATH manually. (This also allows me to put /usr/local/bin before /usr/bin , which is my preference. I've never understood Apple's default settings for $PA…
real 0m0.004s user 0m0.001s sys 0m0.002s
Really? Are you sure path_helper slows things down?