The prosperity came to an end in the middle of the 17th century, caused by the invading Swedish army during the Deluge, and a general decline of the Polish–Lithuanian Commonwealth. The city decline lasted for over a hundred years, and only at the end of the 18th century did it recover its former levels of population. In 1754, the Roman Catholic bishop founded Przemyśl's first public library, which was only the second public library in the Polish–Lithuanian Commonwealth, with Warsaw's Załuski Library founded 7 years earlier. Przemyśl's importance at that time was such that when Austria annexed eastern Galicia in 1772 the Austrians considered making Przemyśl their provincial capital, before deciding on Lwów. In the mid-18th century, Jews constituted 55.6% (1,692) of the population, Roman Catholic Poles 39.5% (1,202), and Greek Catholic Ruthenians 4.8% (147).