On 21/10/12 00:36, Ryan Dew wrote:
> Sorry, I realized my test was flawed and the map operator does seem to
> interfere with concurrency. Does anyone know if there is any benefit of
> using the map operator over a flwor other than simpler syntax?

Generally the simple map operator is evaluated lazily, where a similar 
FLWOR expression is evaluated eagerly. Lazy evaluation is sometimes but 
not always a benefit. For example, if all the values from the loop are 
required, then lazy evaluation just adds overhead to the computation. 
However if only some of the values are needed, then lazy evaluation 
saves unnecessary computation.

John

-- 
John Snelson, Lead Engineer                    http://twitter.com/jpcs
MarkLogic Corporation                         http://www.marklogic.com
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to