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 ..... !!!!!!!!!!!!!!
_______________________________________________
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 ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview