Camshafts and Compression

it would occasionally pre-ignite. It sometimes feels the engine is ‘working against the compression’ when over about 4000rpm. Hope that makes sense.
This? What do the spark plugs look like?