The LHCb experiment is a flavour physics detector, designed to study decays of b and c hadrons for measurements of CP violation and rare decays. Its performance is based on precision tracking and particle-identification systems. In order to accomplish its wide program of physics measurements, the LHCb collaboration has developed in the past years a set of algorithms for reconstruction of the trajectories of charged particles, as well as identification of charged and neutral particles. Several data-driven approaches have been developed to provide a precise calibration of the tracking and particle-identification efficiencies, which are crucial ingredients of many physics analysis. A number of novel strategies have been developed during Run 2 of the LHC to improve the precision of this calibration. This talk presents an overview of the LHCb performance in Run 2 of the LHC, with emphasis on recent improvements.