<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">Hello Claus,<br>
<br>
Le 21/01/2022 à 20:58, Claus Futtrup a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:7e9a0cb1-ba6b-606b-021d-3e257ead55ff@gmail.com">Hi
Scilabers
<br>
<br>
Today I tried to replace xdel(winsid()) in one of my scripts with
close(winsid()) because Scilab shows a warning in the console:
<br>
<br>
Warning: Feature xdel(...) is obsolete and will be permanently
removed in Scilab 6.2
<br>
<br>
Warning: Please use close(...) instead.
<br>
<br>
I am negatively surprised that the close() command takes a long
time to execute with 5-10 windows open (a few seconds per window).
The xdel() command can do it in a split second.
<br>
<br>
</blockquote>
<br>
The issue comes not from close() but from the change of<a
moz-do-not-send="true"
href="http://bugzilla.scilab.org/show_bug.cgi?id=13738#c4">
findobj() that it calls</a>, noticeably to perform
findobj("figure_id",id) in 6.1.1.<br>
It does <a moz-do-not-send="true"
href="http://bugzilla.scilab.org/16734">not impact only</a>
close() for this case, that was processed <a moz-do-not-send="true"
href="https://codereview.scilab.org/#/c/20953/6/scilab/modules/gui/macros/findobj.sci">as
a special accelerated case</a> in the former findobj().<br>
<p>This downgrading<a moz-do-not-send="true"
href="http://bugzilla.scilab.org/show_bug.cgi?id=7117#c6"> was
reported</a> 7 months before releasing 6.1.1, and knowingly
ignored, while it is perfectly fixable by restoring the fast
special case.</p>
<br>
<blockquote type="cite"
cite="mid:7e9a0cb1-ba6b-606b-021d-3e257ead55ff@gmail.com">
<br>
What is the motivation for replacing xdel with close?
<br>
</blockquote>
<br>
Both do the same thing. Scilab does not need duplicates.<br>
<br>
Regards<br>
Samuel<br>
<br>
</body>
</html>