Created attachment 112374 [details] [PATCH] xdg-open: Improve performance of get_key function The attached patch improves the performance of xdg-open by a factor of 10 by avoiding unnecessary grep calls. Without this optimization: time ./xdg-open http://www.google.com/ START /usr/lib/firefox/firefox "http://www.google.com/" (process:17426): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed real 0m7.956s user 0m1.693s sys 0m0.453s With this optimization: time ./xdg-open http://www.google.com/ START /usr/lib/firefox/firefox "http://www.google.com/" (process:17531): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed real 0m0.843s user 0m0.157s sys 0m0.043s
committed,thanks.
Thank you!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.