jdg/MBProgressHUD — pull request #103 by dontangg (2012-11-16 21:13:34+00:00)
Title: HudForView: performance enhancement

The `HUDForView:` method is currently iterating over _all_ of the view's subviews even if it finds the HUD before reaching the end of the array. Also, since it starts looking for it at the beginning of the array of subviews, it is likely to iterate through the whole list before finding it.

Granted, a view should generally not have tons of subviews and iterating through the whole list every time generally shouldn't be a problem. However, this protects against the scenario where someone does have lots of subviews and it improves performance for everyone.