But I still say that all this takes us away from the original question, which has not really been addressed. As a reminder, my post wasn't aimed at improving script quality (it is not the good forum for that), but at understanding the reasons behind the difference in speed between different version...