I've never had audacity lag.
Generally in my experience if you have lag during recording its because your system is not up to par with what you are doing.
So I'd say you don't need a better program, you need a better computer. That or set your comp. up for performance and close everything but recording software.