Created attachment 207443 [details] patch This is ported patch from devel/glib20: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236815 because vte3 uses copy-pasted code from glib.
This change is best suited to submitting upstream first. Please create an issue or PR upstream, and add the issue/PR URL reference to the patch so we can track the patch locally until a future release comes out with the change Does this *actually* depend on the change in bug 236815 being committed *before* this patch is committed? If not, please remove it from Depends On
Created attachment 207480 [details] reworked
(In reply to Kubilay Kocak from comment #1) https://reviews.freebsd.org/D21206 - after that no patch needed.
ping
maintainer timeout
Created attachment 218293 [details] patch
So the Phab review is accepted but not landed; in the meantime vte3 has a similar performance problem (it loops over all **possible** file descriptors and runs a callback, rather than iterating over **open** file descriptors) as xfce / mc had. That performance problem is described in the linked PR 236815 (open). This change is accepted upstream (see linked URL)but might not be in any release yet. I'll +1 this change and the other one, based **also** on vague memories of doing exactly this in some KDE code as well.