BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
678 stars 268 forks source link

BaseX 10, node constructors: Memory consumption #2134

Closed ChristianGruen closed 2 years ago

ChristianGruen commented 2 years ago
<commands>
  <xquery><![CDATA[
    db:create('test', <xml>{
      (1 to 100) ! <row/>
    }</xml>, 'test.xml')
  ]]></xquery>
  <xquery><![CDATA[
    element x { db:open('test')//* }
    => prof:track(map { 'memory': true() })
    => map:get('memory')
    => prof:human()
  ]]></xquery>
</commands>

BaseX 10: 6700 kb BaseX 9: 230 kb

Caused by https://github.com/BaseXdb/basex/issues/2055