As for your patch, the first check on the number of calls to
_processDirectory() fixes the issue, but the second check (after fileList.push)
is NOT needed. As the files are not opened during directory scan, there is no
need to limit its number, only the number of scanned (opened) directories.
To be absolutely clear this check is enough:
<pre> async _processDirectory(directory) {
this._processedEntries++;
if (this._processedEntries >= this._maxNumberOfTemplates) {
return [];
}
</pre>
Thus I would also suggest to rename _maxNumberOfTemplates to
_maxNumberOfOpenedDirs to reflect the issue.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2081198
Title:
ding.js is consuming too much CPU
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell-extension-desktop-icons-ng/+bug/2081198/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs