<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Le 30/03/2020 à 11:56, Federico Miyara
a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:ce8081bf-b87a-b914-33de-ef5632a7e110@fceia.unr.edu.ar">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
<font face="Courier New">Dear All,<br>
<br>
I have observed that Scilab 6.1 seems to have a regression
respect to 6.0.2. Sometimes one forgets to put semicolon after
the coputation of a vector with tens of thousands components.
Scilab 6.0.2 listed all the components very fast. That was nice
because one hadn't to cancel the computation, it took about 1 s.
With 6.1 it takes much longer. For instance<br>
<br>
</font>
<pre style="font-family:Monospaced;font-style:normal;font-size:16.0;"><span style="color:rgb(0,0,0);">Fs</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,106,143);">44100</span>
<span style="color:rgb(0,0,0);">T</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,106,143);">2.5</span>
<span style="color:rgb(0,0,0);">t</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,106,143);">0</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(0,0,0);">T</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(0,0,0);">Fs</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(0,0,0);">Fs</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">ximp</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">exp</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">t</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,106,143);">0.3</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">.*</span><span style="color:rgb(50,185,185);">rand</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">t</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">normal</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(92,92,92);">+</span> <span style="color:rgb(188,106,143);">0.004</span><span style="color:rgb(92,92,92);">*</span><span style="color:rgb(50,185,185);">rand</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">t</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">normal</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">tic</span>
<span style="color:rgb(0,0,0);">ximp</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);">ximp</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(50,185,185);">toc
</span>
</pre>
<font face="Courier New">This takes 1.36 s in 6.0.2<br>
<br>
The same code in 6.1 takes 182 s<br>
<br>
Any idea why?<br>
<br>
I know I can cancel at any moment the script execution, but if
there were a process that took a lot of time one wouldn't be
willing to stop it...<br>
</font></blockquote>
<p><br>
</p>
<p>Apparently, <font color="#3333ff">the maximum number N of lines
of the console scroll buffer set in the user preferences (by
default to 3000) is not taken into account to abstract the
display in this kind of situation</font>. Is it?<br>
</p>
<p>Yet, if there is no opened diary, displaying 100000 "primary"
rows looks 97% useless if the scroll buffer is 3000-row tall:
97000 rows will anyway become unreachable an lost, after the full
display.</p>
<p>So, even without anticipating wrapping of long primary rows, that
still multiplies the number of actual rows to display, wouldn't it
be wise to limit the display to N primary lines, either the N last
ones, or the N/2 first ones + "..." + the N/2 last ones ?<br>
</p>
<p>Even in the case of having so tall full diaries is required (that
is a very specific and exceptional case), it is always possible to
increase N through the preferences.</p>
<p>My two cents...<br>
<br>
Samuel<br>
<br>
</p>
<p><br>
</p>
<br>
</body>
</html>