Changes

Jump to navigation Jump to search
684 bytes added ,  15:33, 6 April 2021
no edit summary
* Function inlining can be turned off by setting the value to {{Code|0}}.
* The limit can be locally overwritten via the [[XQuery Extensions#Function Inlining|%basex:inline]] annotation (follow the link to get more information on function inlining).
|}
 
===UNROLLLIMIT===
 
{{Mark|Introduced with Version 9.6:}}
 
{| width='100%'
|-
| width='120' | '''Signature'''
|{{Code|UNROLLLIMIT}}
|-
| '''Default'''
|{{Code|5}}
|-
| '''Summary'''
|This option controls the unroll limit:
* Loop with few iterations are *unrolled* by the XQuery compiler to enable further optimizations.
* For example, <code>(1 to 2) ! (. * 2)</code> will be rewritten to <code>1 ! (. * 2), 2 ! (. * 2)</code>. This expression can be further rewritten to <code>1 * 2, 2 * 2</code> and <code>2, 4</code>.
* If the limit is increased, more optimizations will take place, but the size of the compiled code might increase.
|}
=Changelog=
 
;Version 9.6
* Added: {{Option|UNROLLLIMIT}}
;Version 9.5
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu