<div dir="ltr">Hi all,<div>I have 4 responses so far, all for adding pugixml to VTK. I'll go ahead and do it. ParaView, CMB and SMTK would benefit</div><div>as they'll have less maintenance cost and VTK will have access to pugi.<br><div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jul 6, 2018 at 9:20 PM Patrick Bergeron <<a href="mailto:pbergeron@spiria.com">pbergeron@spiria.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Have you guys tried profiling what happens during those 2 minutes?<br>
<br>
> On Jul 6, 2018, at 17:56, Elvis Stansvik <<a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a>> wrote:<br>
> <br>
> 2018-07-06 23:26 GMT+02:00 Jonathan Borduas <<a href="mailto:jonathan.borduas@caboma.com" target="_blank">jonathan.borduas@caboma.com</a>>:<br>
>> Hi,<br>
>> <br>
>> Here’s a large xml (paraview statefile with 200+ sphere). It weighs 17.5 MB.<br>
>> It takes 1-2 minutes to load with pugixml 1.4 on ParaView.<br>
> <br></blockquote><div>Indeed, this seem like a long time. Do you mind filing a bug report and attaching the state file. Not sure what is the reason for this.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> Alright. That shows the time of XML parsing is minuscule compared to<br>
> other things in that use case. That file parses in < 400 ms with<br>
> libxml2 here, and I guess pugixml would be even faster. </blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> <br>
> Elvis<br>
> <br>
>> <br>
>> <br>
>> <br>
>> Best,<br>
>> <br>
>> <br>
>> <br>
>> Jonathan Borduas<br>
>> <br>
>> <br>
>> <br>
>> From: vtk-developers <<a href="mailto:vtk-developers-bounces@public.kitware.com" target="_blank">vtk-developers-bounces@public.kitware.com</a>> On Behalf<br>
>> Of Dan Lipsa<br>
>> Sent: Friday, July 06, 2018 4:59 PM<br>
>> To: <a href="mailto:elvis.stansvik@orexplore.com" target="_blank">elvis.stansvik@orexplore.com</a><br>
>> Cc: VTK Developers <<a href="mailto:vtk-developers@vtk.org" target="_blank">vtk-developers@vtk.org</a>><br>
>> Subject: Re: [vtk-developers] Add pugixml to VTK<br>
>> <br>
>> <br>
>> <br>
>> <br>
>> <br>
>> <br>
>> Alright. Maybe this could actually benefit from being done in a<br>
>> streaming fashion (à la libxml2's reader API)? Or will it be<br>
>> beneficial/easier to have access to the whole DOM in memory?<br>
>> <br>
>> <br>
>> <br>
>> You are right - it could be implemented in streaming fashion.<br>
>> <br>
>> I think the trade off is<br>
>> <br>
>> - streaming: slower than dom, less memory than dom, possibly more<br>
>> complicated as you may need to store data for later.<br>
>> <br>
>> - dom: quickest, more memory than streaming, simplest way to access citygml<br>
>> data.<br>
>> <br>
>> <br>
>> <br>
>> For now I lean toward dom as our input data is tiled to start with so I<br>
>> don't expect really large files. I realize I have to revise the specs of the<br>
>> problem:<br>
>> <br>
>> I'll need to parse many medium size XML files.<br>
>> <br>
>> Dan<br>
>> <br>
>> <br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
> <br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> <br>
> Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
> <br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
> <br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">https://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div></div></div></div>