It seems that there's little point in a huge class where the prof won't bother to learn your name anyways. I do find that I enjoyed going to classes more when I wasn't constantly referred to as {female name}--one prof actually insisted we have name tags--and that I actually *wanted* to go to office hours to ask questions on material.
I taught survey lectures with up to 400 students, two different sections, twice a year, that 1,600 names to learn, and it ain't happening, and for the most part, in those classes I never needed their name, my grad students did the interaction with them. In smaller classes I would have them make name deals for their desk, so I could call on them - I told them to write exactly what they wanted to be referred to as. Some chose first names only, some more formal and of course, college students being college students one would always choose Bozo the Clown or something until they found me referring to them as Bozo, at which point they wrote something else. (and hey, I was one of those students when I was an undergrad)
And a lot depends on the school. I went to a private liberal arts college and I knew a lot of my professors, I went over to their houses, went out drinking with them and all that. But, where I taught we had, not 5K students, but 27K undergrads, and that kind of relationship was reserved for my grad students.