At some point it is good to replace the mainspring. Mainsprings loose their strength. A strong mainspring provides strong ignition, and this cannot be overstated for function reliability. Mainspring and recoil spring strength are hugely important in the timing of the mechanism. The slide has to push down the mainspring, a weak mainspring creates a high slide speed on recoil. So does a weak recoil spring.
I have found the importance of recoil/main spring strength in my 1968 22lr M46 Smith and Wesson, and my 1962 ish Ruger MK1.
My 1968 M46, all original springs, was a malfunction junction. First thing that helped was replacing the recoil spring with a Wolff "factory"
as you can see the original recoil spring had taken a set, and that caused timing issues, such as stove piping. I replaced the recoil springs in my M46 and M41. I carried that used M41 spring in my kit, and at one indoor match, a fellow shooter with a Godawful old M41 was having failures to feed/eject. His recoil spring was shorter than my used M41 spring. When we installed my used spring, his pistol was able to function. Since then, I keep a new "factory" Wolff in the box, just in case.
Another problem, the more rounds downrange, the more unreliable both the M46 and my 1988 M41 became in feed, extraction, ignition. Called S&W they were out of OEM factory mainsprings. Numrich claimed to have new ones. Ordered a few.
The Numrich springs looked like someone cut them from coil wire with a cutter. All of different length, the ends sharp, not nice and ground, like the factory springs. However, put the longest one in the M46 and it worked for a time. Then back to stove pipes and failures to ignite.
Called S&W again, still out of mainsprings. But there were vendors on ebay claiming to have new OEM mainsprings, and I purchased two.
In comparison, the worn Numrich spring was short, and I could tell from the effort it took to cock the hammer, that the "new" OEM was considerably stronger. I also replaced the 1988 M41 mainspring, and the new one was stiffer. Which is all to the good.
Just as the recoil spring, the mainspring has an effect on the timing of the action. The slide has to push down the hammer. For proper timing, that mainspring has to be factory strong.
Something else, the "bolt", part number “6508" (firing pin block) in the slide fills with oil. I consider the elbow the drip point, so I over lubricate: bite me. However, I found mine filled with oil, and that has to reduce the velocity of the firing pin impact on the rim. I removed the bolt from the M46, found it swimming in oil. cleaned everything out, and re installed. Now after a match, I am in the habit of blowing the firing pin channel out with compressed air. You have to push the firing pin forward, as when it is in normal rearward position, it seems to be a gas block. So I push it forward with a chop stick, and blow the channel out from the front. I hope it improves function. At least I am blowing the rat's nests, and spider webs out of the firing pin channel!
Recently replace the recoil spring and mainspring housing in my Ruger Mk1. What was also a malfunction junction is now perking reliably (as reliable as a 22lr pistol can be) with my ammunition.
These 22lr incidents have made me realize that what is good for rimfire, is also good for centerfire.
With my 1911's, I have no problem removing the firing pin and spring, and cleaning out the channel. Others have had misfires in cold weather due to oil/etc in the 1911 firing pin channel. Other designs are much more difficult to remove the firing pin, for those designs, I think it smart to blow out the firing pin channel when you think of it. When I blow out the channel on my M92 FS Beretta, what comes out is black oil. Removing that oil before it evaporates into a gum is good for function. You might have to push the firing pin forward with a chop stick to blow it out from the front. I found on the M46/M41 and Beretta that the firing pin will act as a gas block until it is pushed forward.
With any semi auto pistol, keep the recoil springs and mainsprings new. Don't think 20 year, 50 year old springs have the same strength as new springs. They don't. No semi auto pistol has the ignition energy of a rifle. Powder combustion is hugely dependent on how much energy and flame comes out of that primer. Weak primer flame, weak powder combustion. Primer combustion is complicated, but for you, weak ignition system, weak primer combustion. Period, end of story.