&nbsp; Hi all.<br><br>&nbsp; On this weekend i was worked on reduce memory usage in dsa2oval script.<br>My last test show that script can&#39;t generate OVAL definitions file for full Debian DSA tree on my laptop with 512 RAM. Script require too much memory and OS start swapping script data to disk, but some data used for sort new records. In result i have high load and can&#39;t receive result during 30 minutes.
<br>&nbsp; <br>&nbsp; In latest commit (rev. 305-310) i was rewrite most logic in class style and use memory profiling to find memory consumer. Main problem is createOVALDefinitions function which store full OVAL XML tree in memory. Now i marked this function as deprecated and move it functionality to printOVALDefinitions and i change strategy of storage resulted XML.
<br><br>&nbsp; Now printOVALDefinitions write XML nodes to output stream as soon as possible (when generated all child nodes). It currently implemented for &lt;definitions&gt; node, but it may used and for &lt;objects&gt;, &lt;tests&gt;, &lt;states&gt; nodes.
<span style="color: rgb(128, 128, 128);"></span><br clear="all"><br>&nbsp; In result i have 30% reduce of memory usage, and test passed successfully on my laptop. As a drawback i have some weakness in resulted XML formation, but i will work on this issue in near future.
<br><br>-- <br>Pavel Vinogradov<br>NixDev.Net, Senior Linux Developer