It eliminates the if namespace & if localname checks, so effectively to levels of indent + 3 if branches removed :). The code you have here is clean regardless, just the performance aspects I was concerned about. But, as there is no impact noticable @ 1000pages, I'm inclined to believe this will not be our next bottleneck anytime soon!