[vtkusers] vtkStructuredPointsReader speed with vectors
Tijmen Klein
T.R.Klein at student.rug.nl
Fri Oct 14 10:34:23 EDT 2011
The files were in ascii. I've adjusted my loading code a bit to check for a
binary file. If there is no binary file, I convert the ascii file to binary
so that the next time will be quicker. And boy, do things get quicker :)
Loading the ascii files takes about 77 seconds. Loading the binary files
takes around 1(!!!) second!
So thanks for the tip.
Cheers,
Tijmen
On Fri, Oct 14, 2011 at 2:55 PM, Michael Jackson <
mike.jackson at bluequartz.net> wrote:
> Are those files binary or ascii? Loading binary vtk files can be very
> quick where their ascii versions are much slower. I have as much as a
> 10x speed up going from ascii to binary format.
>
> -----
> Mike Jackson www.bluequartz.net
> Principal Software Engineer mike.jackson at bluequartz.net
> BlueQuartz Software Dayton, Ohio
> Sent from my mobile device.
>
> On Oct 14, 2011, at 8:02, Tijmen Klein <T.R.Klein at student.rug.nl> wrote:
>
> > I have an application that loads 70 files of data in the legacy VTK
> format. 35 files contain scalar data, and 35 files contain vector data. The
> scalar files are around 4MB per file, and the vector files around 12MB.
> > However, loading all scalar files (with a vtkStructuredPointsReade) takes
> around 12 seconds, loading all vector files takes around 65 seconds. That's
> more than 5 times slower, while the files are only 3 times larger.
> >
> > Is there a explanation for this difference in speed, and is there a way
> to increase the loading speed of those vector files? Would converting (all)
> files to a different format help with the loading time? Waiting 77 seconds
> before the data is loaded is a bit much.
> >
> > Cheers,
> > Tijmen
> > _______________________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> >
> > Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20111014/afff7c15/attachment.htm>
More information about the vtkusers
mailing list