<html><body>
<p><font size="2" face="sans-serif">I have done a lot of this kind of thing in scilab and other similar tools.  A key point - If the algorithm is naturally vectorizable, there probably won't be much benefit in further optimization.  However it it inherently is not vectorizable then the key calculation can be written as a callable fortran (my favorite) subroutine.   Use Scilab for the I/O and visualization; write the compute intensive core in fortran.  </font><br>
<br>
<font size="2" face="sans-serif">While I'm on the subject, the old  Intersci system was a very convenient way to automatically generate the interface routine between scilab and an arbitrary fortran subroutine.  There seems</font><br>
<font size="2" face="sans-serif">not to be recent documentation on doing the same (specifically for fortran).  Or am I missing something?   I've had to use the "call" interface to use old code.  Is there a better way?</font><br>
<br>
<font size="2" face="sans-serif">Thanks - </font><br>
<font size="2" face="sans-serif">Steve</font><br>

<script language="JavaScript" type="text/javascript">
<!-- 
function _dSectionExpand(sec) {
         document.getElementById("cSec"+sec).style.display = "none";
         document.getElementById("xSec"+sec).style.display = "block";
}
function _dSectionCollapse(sec) {
         document.getElementById("xSec"+sec).style.display = "none";
         document.getElementById("cSec"+sec).style.display = "block";
}
// -->
</script>
<div id="cSec1"><a href="javascript:_dSectionExpand('1')" onclick="return _dSectionExpand('1');"><img src="/icons/expand.gif" border="0" alt="Show details for Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: It is worth mentioning that in many ways performance is not critical"></a><a onclick="return _dSectionExpand('1');"><font size="2" color="#424282" face="sans-serif">Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: It is worth mentioning that in many ways performance is not critical</font></a></div><div id="xSec1"><a href="javascript:_dSectionCollapse('1')" onclick="return _dSectionCollapse('1');"><img src="/icons/collapse.gif" border="0" alt="Hide details for Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: It is worth mentioning that in many ways performance is not critical"></a><a onclick="return _dSectionCollapse('1');"><font size="2" color="#424282" face="sans-serif">Ricardo Fabbri ---03/02/2017 01:30:36 PM---Speaking from experience: It is worth mentioning that in many ways performance is not critical</font></a><br>
<br>
<font size="1" color="#5F5F5F" face="sans-serif">From:      </font><font size="1" face="sans-serif">Ricardo Fabbri <rfabbri@gmail.com></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">Users mailing list for Scilab <users@lists.scilab.org></font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Date:      </font><font size="1" face="sans-serif">03/02/2017 01:30 PM</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Subject:   </font><font size="1" face="sans-serif">Re: [Scilab-users] Matlab vs Scilab perf</font><br>
<font size="1" color="#5F5F5F" face="sans-serif">Sent by:   </font><font size="1" face="sans-serif">"users" <users-bounces@lists.scilab.org></font><br>
<hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br>
<br>
<br>
<tt><font size="2">Speaking from experience:<br>
<br>
It is worth mentioning that in many ways performance is not critical<br>
for a "lab" language like Scilab or Matlab. It is just an extremely<br>
simple language to test concepts and algorithms at a very small scale<br>
of granularity. The real crucial factor for Scilab or Matlab is the<br>
GUI for exploring data and developing algorithms interactively. Once<br>
you have a working solution, you'll fit it inside a bigger and more<br>
relevant<br>
system by porting promptly to a language like C++ for scalability and speed.<br>
<br>
Just use Scilab for what its worth, don't obsess with speed, even<br>
though it is important.<br>
<br>
Best,<br>
<br>
--<br>
Dr Ricardo Fabbri<br>
Professor of Computer Engineering<br>
GNU/Linux registered user #175401<br>
pt.wikipedia.org/wiki/IPRJ<br>
labmacambira.sf.net<br>
rfabbri.github.io<br>
<br>
<br>
On Thu, Mar 2, 2017 at 2:00 PM, Samuel Gougeon <sgougeon@free.fr> wrote:<br>
> Le 02/03/2017 à 16:29, Michael Benguigui a écrit :<br>
><br>
> Hi all,<br>
> As a Scilab user, I am currently fighting to reach Matlab performance..My<br>
> current scilab program takes 4x more than my matlab's vesion. Here are some<br>
> instructions requiring some optimizations.. If you have an idea... thanks a<br>
> lot!<br>
><br>
> All times are cumulative times after the execution (iterations)<br>
> I used the Matlab and Scilab profilers<br>
><br>
><br>
> Congratulations for using the new Scilab profiler :)<br>
> Could you post please the file of results? It is indeed hard to answer<br>
> without having more information either on a runnable part of your code, or<br>
> about results you got with the profiler.<br>
><br>
> Regards<br>
> Samuel<br>
><br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> users@lists.scilab.org<br>
> </font></tt><tt><font size="2"><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a></font></tt><tt><font size="2"><br>
><br>
_______________________________________________<br>
users mailing list<br>
users@lists.scilab.org<br>
</font></tt><tt><font size="2"><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a></font></tt><tt><font size="2"><br>
</font></tt><br>
</div>
<script language="JavaScript" type="text/javascript">
<!-- 
_dSectionExpand('1');
// -->
</script>
<br>
</body></html>