[Paraview] paraview 3.10.0 : calculation time x 10 compared with 3.8.1

Aurélien Marsan aur.marsan at gmail.com
Wed Mar 30 10:32:55 EDT 2011


Some informations more :

In a programmable filter, I execute the same following script on both
paraview 3.8.1 and paraview 3.10.0 - binary releases for win32.
The input is a MultiBlockDataSet, 4.5e6 nodes.

   import time

   balise = time.time()

   from paraview import vtk

   i = self.GetInput()

   o = i.NewInstance()

   for numbloc in range(1, 26):

      calc = vtk.vtkArrayCalculator()

      calc.SetInput(i.GetBlock(numbloc))

      calc.AddScalarArrayName('ro',0)

      calc.SetFunction('ro^2')

      calc.Update()

      o.SetBlock(numbloc, calc.GetOutput())

   self.GetOutput().ShallowCopy(o)

   print time.time() - balise

With Paraview 3.8.1 --> 1.17 s
Whereas with Paraview 3.10.0 --> 19s ..... !!!!!!!!!!!!!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20110330/40d481ff/attachment.htm>


More information about the ParaView mailing list