Hot to speed up this function
#6

Reducing the loop will give an advantage as well. Have a global variable and when the server starts and loads the houses, assign to the variable how many houses were loaded. Then on the loop, go until the variable and not the sizeof of House array. Don't forget then to increase/decrease depending on adding/deleting a house.
Reply


Messages In This Thread
Hot to speed up this function - by ATomas - 13.05.2016, 11:26
Re: Hot to speed up this function - by BiosMarcel - 13.05.2016, 11:33
Re: Hot to speed up this function - by ATomas - 13.05.2016, 11:35
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 11:44
Re: Hot to speed up this function - by ATomas - 13.05.2016, 11:46
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 12:01
Re: Hot to speed up this function - by ikey07 - 13.05.2016, 12:13
Re: Hot to speed up this function - by ATomas - 13.05.2016, 12:15
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 12:29
Re: Hot to speed up this function - by ATomas - 13.05.2016, 12:36
Re: Hot to speed up this function - by Konstantinos - 13.05.2016, 12:41
Re: Hot to speed up this function - by ATomas - 13.05.2016, 12:43
Re: Hot to speed up this function - by PrO.GameR - 13.05.2016, 14:27
Re: Hot to speed up this function - by Crayder - 13.05.2016, 16:04

Forum Jump:


Users browsing this thread: 4 Guest(s)