13.05.2016, 12:41
It would reduce the times the loop goes if the size of House array is let's say 500 and you have only 400 houses created. If you mean by "constant number of houses" that your array "House" is full then yes, it does nothing (you didn't mention it though).
The best suggestion however would be to use SQL instead and all you need is a simple query.
The best suggestion however would be to use SQL instead and all you need is a simple query.