Efficient calculation of chemically reacting flow