340 cam in a 318

I was in college and had 2 bad cylinders in the 318 in my Barracuda... My brother gave me a 72 318 short block with 10.5 TRW pistons... Then he offered me the stock cam from his Lil Red Express that he upgraded his cam on... I assembled the short block and installed the top end of the other 318 on it and installed it in my daily driver Barracuda for under $400 including Rhodes lifters, gaskets, oil, and antifreeze....

Broke college student, you throw together what you have...

Until I had the overheating problem... I spoke to my engine class professor and he told me my compression was too high and the mixture was self igniting before my spark and I had two flame fronts colliding due to the high compression and I needed to lower my compression... The 360 heads brought me down to 9.2... It ran great after that, I drove that engine to 500,000 miles....
You just said basically what i was saying in my last post. Who has time to dick around finding out the hard way. i dont want an engine that pings and carries on on a warm summer day, I just want to cruise. I get it you were in college but you did alot of wrenching / swapping untill you threw those 360 heads on am I correct? I don't mean to come off as cranky Im just old and don't have time to build engines that will eventually get yanked and put in a corner it isn't cheap these days either...:)