[REP++] Loop Optimize?
#1

How it is faster and better?
Method 1 or 2? Why?

METHOD 1:
Код HTML:
for(new r = 0; r < cache_num_rows(); ++r)
for(new h = 0; h < sizeof(AllHouses); h++)
for(new h = 0; h < sizeof(AllBizzs); h++)
METHOD 2:
Код HTML:
for(new r = 0, c = cache_num_rows(); r < c; ++r)
for(new h = 0, s = sizeof(AllHouses); h < s; h++)
for(new h = 0, a = sizeof(AllBizzs); h < a; h++)
Reply


Messages In This Thread
[REP++] Loop Optimize? - by KessMan - 24.01.2017, 16:33
Re: [REP++] Loop Optimize? - by Vince - 24.01.2017, 16:39

Forum Jump:


Users browsing this thread: 1 Guest(s)