The cam can also play a part. Generally, a cam with more adv duration is said to bleed off some of the compression, making detonation a bit less likely. An example might be something like a Pontiac "744" cam, which has 301/313 adv duration.
But, a small fast ramp cam, such as a Comp Cams XE262, which has only 262/268 adv duration, will increase cylinder pressure & chances of detonation.