Optimisation of ecc::input