Performance optimisation; from analysis to implementation