A new algorithm for calculating the transmittance has been developed that includes recent advances in the line-by-line calculation method. The high speed of operation is provided due to preliminary selection of absorption lines, frequency grid optimization, and reduction of inhomogeneous path to equivalent homogeneous one.