Performance optimisation example