isEmpty() is almost certainly faster since the expected value is either a null string or a non-empty string.
But that was one of my original points, wasn't it?
In any case it really doesn't matter, only actually measured timing data does.
The only thing that is always true is that things that are not executed are "faster" than things that are executed, so doing things that aren't necessary is always going to be more time consuming than not doing it in the first place.
Which of course is also one of the initially pointed out issues.
Cheers,
_






Reply With Quote
Bookmarks