for() vs foreach()
#3

'foreach' is faster.

It doesn't loop through unused thing, like other non-existing 499 players on our server, while 'for' goes through all of 500 players.
Reply


Messages In This Thread
for() vs foreach() - by The Scripter - 20.08.2010, 22:04
Re: for() vs foreach() - by Vince - 20.08.2010, 22:29
Re: for() vs foreach() - by CaHbKo - 20.08.2010, 22:31
Re: for() vs foreach() - by Carlton - 20.08.2010, 22:56
Re: for() vs foreach() - by Nero_3D - 20.08.2010, 23:24
Re: for() vs foreach() - by The Scripter - 20.08.2010, 23:32
Re: for() vs foreach() - by [L3th4l] - 20.08.2010, 23:35
Re: for() vs foreach() - by Simon - 20.08.2010, 23:51
Re: for() vs foreach() - by The Scripter - 20.08.2010, 23:58
Re: for() vs foreach() - by lolumadd - 21.08.2010, 00:04

Forum Jump:


Users browsing this thread: 1 Guest(s)