That's interesting. Specially if further version of xquery support constant-sized arrays, meaning that xquery can allocate contiguous block of memory (I will not have to bind JAVA anymore !).
This will depend on the way how XQuery arrays are implemented; a constant-sized array could be one possible option. Depending on the actual data, there may even be cheaper solutions. For example, the XQuery expression (1 to 5) will never be materialized to 5 integers in BaseX; instead, a range value is created that contains the min and max value.
I was trying to look to a site listing the new features of xquery 3.1 but did not succeed. Could you be kind enough to provide a link if you have one in mind ?
It’s too early to go public, because many possible features are still being discussed.