Evolution of low-mass X-ray binaries: dependence on the mass of the compact object