Where
Posted: Fri Aug 07, 2009 2:21 pm
by Torrie Moore >> Thu, 3 Feb 2000 3:48:08 GMT
Does anyone know which version of the following code is more efficient. We are finding the second generally takes less time and wondered if if resulted in faster code when compiling.
Torrie
1) foreach obj in collection where condition do
endforeach;
2) foreach obj in collection do
if condition then
endif;
endforeach;
Does anyone know which version of the following code is more efficient. We are finding the second generally takes less time and wondered if if resulted in faster code when compiling.
Torrie
1) foreach obj in collection where condition do
endforeach;
2) foreach obj in collection do
if condition then
endif;
endforeach;