Which is the faster way to check whether or not a string is empty,
Run it for yourself. In my tests they were about the same, Len() was usually slightly quicker, but almost insignificantly so. And it took 100,000 iterations to see results worthy of graphing. In other words, there are about the same so use whichever you prefer.
Leave a Reply