Openbox iterates through all groups on startup. In our LDAP environment with activated user private groups, this slows down the startup of openbox significantly. Reproducible: Always Steps to Reproduce: 1. start openbox (or obconf) Actual Results: took a long time to get started Expected Results: appeared instantly The usage of getgrent is responsible for these delays. The patch supplied uses getgroups instead of getgrent, with performs much better and respects local nscd caches. our enviroment: getent group|wc -l 22831 getent passwd|wc -l 14592 patch available on: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=808138 https://bugzilla.icculus.org/show_bug.cgi?id=5978
Created attachment 756148 [details, diff] replace getgrent -> getgroups
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c7ad157920317e70d19389d9f3601d3cc7f599be commit c7ad157920317e70d19389d9f3601d3cc7f599be Author: Jimi Huotari <chiitoo@gentoo.org> AuthorDate: 2023-03-09 14:22:09 +0000 Commit: Jimi Huotari <chiitoo@gentoo.org> CommitDate: 2023-03-09 16:29:48 +0000 x11-wm/openbox: patch getgrent to getgroups Upstream: https://bugzilla.icculus.org/show_bug.cgi?id=5978 Closes: https://bugs.gentoo.org/827227 Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> .../openbox-3.6.1-getgrent-to-getgroups.patch | 67 ++++++++++++ x11-wm/openbox/openbox-3.6.1-r4.ebuild | 121 +++++++++++++++++++++ x11-wm/openbox/openbox-9999.ebuild | 4 +- 3 files changed, 191 insertions(+), 1 deletion(-)