How many times have I posted this?
Poor shifting is almost always caused by the short curved length of outer cable at the rear derailleur getting dirt or moisture in it and the ends of the steel reinforcements rusting. The cable is stressed and exposed to water and needs regular servicing.
And:
It's worth getting your LBS to cut you a few pieces of outer cable the right length or buy a length and cut it yourself. Pull it off, marvel at the dirt and rust, clean the exposed inner cable and if possible, gve it a polish with metal polish. Clean again and then run it through fingers wetted with a wax-based chain lube like Finish Line. Protect the outer cable ends with grease, Vaseline or lanoline then fit the ferrules and thread the inner through. This needs doing regularly to maintain performance.