<div>Some informations more : </div>
<div> </div>
<div>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.</div>
<div>The input is a MultiBlockDataSet, 4.5e6 nodes. </div>
<div> </div>
<div> import time
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> balise = time.time()</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> from paraview import vtk</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> i = self.GetInput()</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> o = i.NewInstance()</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> for numbloc in range(1, 26):</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> calc = vtk.vtkArrayCalculator()</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> calc.SetInput(i.GetBlock(numbloc))</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> calc.AddScalarArrayName('ro',0)</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> calc.SetFunction('ro^2')</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> calc.Update()</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> o.SetBlock(numbloc, calc.GetOutput())</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> self.GetOutput().ShallowCopy(o)</p>
<p style="TEXT-INDENT: 0px; MARGIN: 0px; -qt-block-indent: 0"> print time.time() - balise</p></div>
<div><br>With Paraview 3.8.1 --> 1.17 s</div>
<div>Whereas with Paraview 3.10.0 --> 19s ..... !!!!!!!!!!!!!! </div>