In general, both methods work the same and just as well.
For which is more efficient, I can't say, but I don't believe there's a difference. My preffered method is the second solution.