Thirs implementation performances optimisation