The Library of Babel books weren't an infinite amount, they could fill up to 400 pages or so if I remember correctly. Still, it would have been a pretty big amount of books, far more than the amount of atoms of this universe.
If we want a really infinite library, a lot of named irrational numbers could work as that, and be as efficient for searching for something meaningful inside.