<div dir="ltr">Without access to the Framework's implementation source code it is difficult to guess where the bottleneck is at the PDK level. However, a likely explanation is that the lua code is creating a TGF (expensive) for every layer in every FCCell to check if there are any notes. The first thing I would try is loading FCCellFrameHold on each cell. If there isn't one for the cell, you don't have to check for entries because it's already a default whole rest.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 22, 2020 at 3:53 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Hi all,<br>
<br>
what is the fastest method in removing a whole rest and thus
creating the "default whole rest" look?<br>
<br>
I noticed that the standard Finale plug-in "Change to Default Whole
Rests" works super-fast while all JW Lua methods that I tested can
take several seconds (even more than a minute) if run on huge scores
with thousands of empty measures.<br>
I have tested it with:<br>
<br>
FCNoteEntryLayer:DeleteAllRestFrames()<br>
FCNoteEntryLayer:DeleteAllNullEntries()<br>
FCNoteEntryLayer:ClearAllEntries()<br>
FCNoteEntryCell:ClearFrame()<br>
FCNoteEntryCell:DeleteAllNullEntries()<br>
FCNoteEntryCell:DeleteEntry()<br>
<br>
Maybe I did something wrong, but I wonder why it is so slow and the
Finale plug-in so fast.<br>
Any ideas?<br>
<br>
Best,<br>
Jan<br>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>