What motion picture had the largest cast

Inspired by this thread, I’m curious about the movie with the largest cast.

By that I mean the movie with the highest number of individually credited actors (whether it’s by name or something like, “Man in blue suit”) who have at least one spoken line of dialogue (even if it’s just one word). Crowds and background extras don’t count for the purposes of this thread.

Could it be any of Robert Altman’s movies? Pret a Porter, for instance, featured many celebrities who appeared as themselves. They were mentioned in the credits though.

How many of them have dialogue?

Voyna i Mir, a Soviet government financed adaptation of Tolstoy’s War and Peace, had more than 200,000 extras and dozens of individually credited roles.

For something more mainstream, the 1956 version of Around the World in 80 Days had dozens of individually credited parts with name actors because of its many cameos.

I don’t know that either of the above has the record.

Any discussion of movies with large casts has to include D.W. Griffith’s Birth Of A Nation. There were thousands of people in the film, but no speaking roles of course.

Surely war movies like The Longest Day, **Tora, Tora , Tora ** and Midway are contenders for the largest casts. The credits for the cast of The Longest Day are nearly as long as the movie.