BaseXdb/basex

Sequences, counts, subsequences: Runtime

ChristianGruen opened this issue · 1 comments

The following code is evaluated much faster if the second a element is removed:

for $a in (
  <a>{ (1 to 5000) ! <b/> }</a>,
  <a>{ (1 to 5000) ! <b/> }</a>
)
return array {
  for $i in 1 to count($a/b)
  let $b := subsequence($a/b, $i, 2)
  where $b
  return $b
}