We report the optimization of the design and performance of recently reported hairpin tungsten electron source as a cathode in diode type geometry of the gun. The temperature maximum has been shifted close to the crown of the source. Focusing of the beam has been achieved up to 1 mm in diameter with Gaussian profile of the beam at the target. The perveance and power density measured are 10−5 A V−3/2 and 106 W cm−2, respectively.