We observed the increase of the conversion efficiency from laser energy to Kalpha x-ray energy (eta(K)) produced by a 60 fs frequency doubled high-contrast laser pulse focused on a Cu foil, compared to the case of the fundamental laser pulse. eta(K) shows a strong dependence on the nonlinearly modified rising edge of the laser pulse. It reaches a maximum for a 100 fs negatively modified pulse. The hot electron efficient heating leads to the enhancement of eta(K). This demonstrates that high-contrast lasers are an effective tool for optimizing eta(K), via increasing the hot electrons by vacuum heating.