Well, we do not have an explicitly “slow” method and a “quick” one. So one need to investigate what exactly is long in your case.
In fact, different things occurs behind the Show
:
- update the whole upstream pipeline (if needed). In a script case, the first
Show
will trigger the reader for instance. - create the
Representation
object, i.e. prepare data for rendering. WithGeometryRepresentation
, it extracts the external surface of the mesh, create a default colormap, etc…
The 1.
can also be done with UpdatePipeline
, so you can see which part is long.
For more timing details, you look at the execution logger. See --log
and --verbosity
option of paraview / pvpython. In the interface, go to Tools / Log viewer
.
For instance
./bin/pvpython --log=output.log,TRACE
See also: