This extraordinary book from Frances Yates explains how before writing, scholars and story tellers would visualize architecture so they could store memories in rooms, then they would walk from room to room and recover memories, for example to tell very long stories.
https://en.wikipedia.org/wiki/The_Art_of_Memory