It's a pity, that current patch mixes up 2 different issues, number of files
and bug with number of opened directories.
It's would be simple to create 2 variables for 2 different logically
unconnected limits, like this:
<pre>
this._maxNumberOfOpenedDirs = 100;
this._maxNumberOfTemplates = 500;
this._processedDirs = 0;
this._processedTemplates = 0;
...
async _processDirectory(directory) {
this._processedDirs++;
if (this._processedDirs >= this._maxNumberOfOpenedDirs) {
return [];
}
...
this._processedTemplates++;
if (this._processedTemplates >= this._maxNumberOfTemplates) {
break;
}
</pre>
--
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