When the Chasam Sofer zt”l was a child, his prayers were quite lengthy and took a lot of time.
One of his friends chided him: “Moshe, while you stood and prayed I learned several pages of Gemara!”
R’ Moshe replied: “I am not concerned. The Gemara says (Berachos 54b) that someone who lengthens his prayers will have his days and years lengthened. I will catch up with my learning during the extra days and years that I will receive due to my extended prayers…”