Another thing you can do is increase the burn rate of the combustion chamber. That is why with modem engines you hear about fast burn chambers or quick burn chambers. The goal is the faster you can make the chamber burn, the more tolerant to detonation it is. It is a very simple phenomenon, the faster it burns, the quicker the burn is completed, the less time the end gas has to detonate. If it can't sit there and soak up heat and have the pressure act upon it, it can't detonate.