[vtkusers] Profiling VTK/Performance improvements (with Python)

Fcs ftpronk at engits.com
Tue Jan 15 12:54:58 EST 2019


Not much of a VTK optimizer myself, but a few ideas to move the conversation
forward:

- Did you set the VTK_SMP_IMPLEMENTATION_TYPE flag to the correct backend
for your compiler? (If you're using LLVM: OpenMP). And does your version of
LLVM support OpenMP? Do you have all the libraries installed?  As a side
note, maybe this document will help:
https://vtk.org/Wiki/images/3/3b/VTK_SMP_Guide.pdf

- For timing, you can possibly start by measuring the time elapsed when
calling Update(). See for instance the timer.StartTimer() calls in this
python code: 
https://vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Points/Testing/Python/TestPointInterpolator.py

- What do you call slow? 41 million cells is not a particularly big test
case, so no need to worry about that. What you do need to keep an eye on,
though, is your memory usage. If you run out of memory and your system
starts swapping to disk, then VTK will be unbearably slow for sure..



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list