roxen.lists.pike.general

Subject Author Date
RE: Arrays: multi-pop? Arjan van Staalduijnen <Arjan[dot]van[dot]Staalduijnen[at]rtl[dot]nl> 09-09-2009
 | for (int i=0; i<sizeof(update_values); i+=5000)
 | {
 |     // do something with update_values[i..i+4999]
 | }

To me this is the understanding I have of
	foreach (update_values / 5000, array updates)
	{
		// do something with updates
	}

Doing a timed comparison of the two on a 100,000 element array does appear to
show your for-loop is a faster than my foreach-version, so something is
different anyhow...???


Arjan