Hi,

Just out of interest how large is tempDistance (it it’s range of values)? It 
looks like you working out distances of long/lat and for small values of 
tempDistance you can use approximations than mean that just about all of the 
maths goes away.

Of course if the math isn’t taking up a lot of then then there may not be any 
point to that, so you’ll need to do that first. Once simple way would be to 
count how many times the math code in the inner most if is calculated from a 
single run and then profile that code x run times to see if it needs to be 
optimised.

Thanks,
Justin

Reply via email to