[vtk-developers] Add pugixml to VTK

Elvis Stansvik elvis.stansvik at orexplore.com
Fri Jul 6 17:55:59 EDT 2018


2018-07-06 23:26 GMT+02:00 Jonathan Borduas <jonathan.borduas at caboma.com>:
> Hi,
>
> Here’s a large xml (paraview statefile with 200+ sphere). It weighs 17.5 MB.
> It takes 1-2 minutes to load with pugixml 1.4 on ParaView.

Alright. That shows the time of XML parsing is minuscule compared to
other things in that use case. That file parses in < 400 ms with
libxml2 here, and I guess pugixml would be even faster.

Elvis

>
>
>
> Best,
>
>
>
> Jonathan Borduas
>
>
>
> From: vtk-developers <vtk-developers-bounces at public.kitware.com> On Behalf
> Of Dan Lipsa
> Sent: Friday, July 06, 2018 4:59 PM
> To: elvis.stansvik at orexplore.com
> Cc: VTK Developers <vtk-developers at vtk.org>
> Subject: Re: [vtk-developers] Add pugixml to VTK
>
>
>
>
>
>
> Alright. Maybe this could actually benefit from being done in a
> streaming fashion (à la libxml2's reader API)? Or will it be
> beneficial/easier to have access to the whole DOM in memory?
>
>
>
> You are right - it could be implemented in streaming fashion.
>
> I think the trade off is
>
> - streaming: slower than dom, less memory than dom, possibly more
> complicated as you may need to store data for later.
>
> - dom: quickest, more memory than streaming, simplest way to access citygml
> data.
>
>
>
> For now I lean toward dom as our input data is tiled to start with so I
> don't expect really large files. I realize I have to revise the specs of the
> problem:
>
> I'll need to parse many medium size XML files.
>
> Dan
>
>


More information about the vtk-developers mailing list