This only improved when the Mediterranean coastal cities managed to build up enough military strength to ensure a reasonable degree of safety over pirate-infested sea routes, "rebooting" the economic landscape. Their contacts with the now-consolidated Islamic states eventually resulted in the "rediscovery" of classical knowledge, that Islamic scholars had preserved (and built upon) in superior ways.
It's true that there was some technological progress even during the Middle Ages, but it was largely limited to immediately-practical purposes: agriculture and war.
Slavery was still an important economic factor in the early middle ages ("Dark ages").
"By ...(741–752), Venice had established a thriving slave trade, buying in Italy, and selling to the Moors in Northern Africa. .. Caravans of slaves traveled from Eastern Europe, through Alpine passes in Austria, to reach Venice."
https://books.google.dk/books?id=G4dECgAAQBAJ&pg=PT28&lpg=PT...
The idea of a Dark Ages is largely a north-western European one because we got largely cut off from Rome for a few centuries. In Italy and France, and especially in the Byzantine Empire there was no Dark Age. Technological progress didn't stop and slavery was no longer a major sociological or economic factor.