We were told sometime ago on the Airbus fleet that we should not go to standby when changing squawk as it takes quite a long time for the transponder to start working again when it is switched back, standard practice is now to just the new code with unit still switched on.