A process for cracking heavy hydrocarbon comprising heating the heavy hydrocarbon feedstock, mixing the heavy hydrocarbon feedstock with a fluid and/or a primary dilution steam stream to form a mixture, flashing the mixture to form a vapor phase and a liquid phase, separating and cracking the vapor phase, and cooling the product effluent in a transfer line exchanger, wherein the amount of the fluid and/or the primary dilution steam stream mixed with the heavy hydrocarbon feedstock is varied in accordance with at least one selected operating parameter of the process, such as the temperature of the flash stream before entering the flash/separator vessel.