How to debug slow terminal prompt?

I was encountering a 5-second lag (!) between Terminal window creation and receiving a bash prompt. (This was on a fresh install of Mavericks on which I had copied user profiles from another machine.) I removed all the *.asl files in /private/var/log/asl/ as mentioned here, and it completely solved my lag issue. Thanks.