[vtk-developers] Parsing and reading json files

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Dec 12 09:48:58 EST 2017


Just one reminder for RapidJson and long string:

https://github.com/Tencent/rapidjson/issues/996

On Tue, Dec 12, 2017 at 3:20 PM, Andras Lasso <lasso at queensu.ca> wrote:
> Jsoncpp works and it’s already added in VTK, so it is a convenient choice.
> However, we’ve found that if you work with large documents then it is
> unbearably slow (not just parsing, but accessing data in memory). For large
> files, I would recommend RapidJSON instead.
>
>
>
> Some advantages of RapidJSON:
>
>
>
> -          Magnitudes faster, also, its API facilitates writing efficient
> application code (although this API is also a bit more complex than jsoncpp)
>
> -          CMake-ified
>
> -          Header-only (no need to install DLLs, ...)
>
> -          More conform to json standard
>
> -          Library is much smaller (31k vs 243k)
>
>
>
> Some more background:
>
> https://github.com/Slicer/Slicer/pull/646
>
>
>
> Andras
>
>
>
> From: vtk-developers [mailto:vtk-developers-bounces at vtk.org] On Behalf Of
> Will Schroeder
> Sent: Tuesday, December 12, 2017 9:09 AM
> To: vtk-developers <vtk-developers at vtk.org>
> Subject: [vtk-developers] Parsing and reading json files
>
>
>
> Background:
>
> I am working with a research team performing biological simulation (UConn
> fungal simulation). Their simulation code (NetLogo) has been instrumented to
> output JSON files for the purposes of visualization.
>
>
>
> Advice needed:
>
> We need to read their data so I intend to write a VTK reader to parse these
> JSON files. It appears that "VTK/ThirdParty/jsoncpp" is the way to go,
> please correct me if I am wrong and/or offer an alternate approach.
>
>
>
> Best,
> W
>
>
>
>
>
>
> --
>
> William J. Schroeder, PhD
> Kitware, Inc. - Building the World's Technical Computing Software
> 28 Corporate Drive
> Clifton Park, NY 12065
> will.schroeder at kitware.com
> http://www.kitware.com
> (518) 881-4902
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtk-developers
>
>



-- 
Mathieu


More information about the vtk-developers mailing list