Totally agree. If the salary offered at the end of a successful interview is not going to be high enough, a lot of time has been wasted on both sides. But it seems to me that a salary discussion at the beginning of the process is quite rare.
That is why I like companies like Hired.com where you can see what salary is being offered by various companies. It gets that step very early in the process.