new librsvg results in every application being very slow in jhbuild
Hi, every gtk+ application inside jhbuild environment is very slow using most of the CPU time for librsvg.
The following is a sysprof screenshot for gnome-todo. All I did is open About dialog and close it:
SELF CUMULATIVE FUNCTION
[ 1.78%] [ 100.00%] [gnome-todo]
[ 0.01%] [ 85.41%] rsvg_start_element
[ 0.01%] [ 85.39%] rsvg_standard_element_start
[ 0.01%] [ 0.01%] rsvg_property_bag_new
[ 0.01%] [ 0.01%] rsvg_property_bag_free
[ 0.00%] [ 0.01%] rsvg_start_xinclude
[ 6.22%] [ 9.03%] main
[ 0.03%] [ 2.44%] In file [stack]
[ 0.20%] [ 0.32%] In file /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0
[ 0.00%] [ 0.21%] - - kernel - -
[ 0.18%] [ 0.19%] gtd_row_get_preferred_width_with_max
[ 0.06%] [ 0.12%] In file /usr/lib/python3/dist-packages/gi/_gi.cpython-36m-x86_64-linux-gnu.so
[ 0.00%] [ 0.12%] fetch_possible_mmx_operand.part.21
[ 0.07%] [ 0.07%] _PyEval_EvalFrameDefault
[ 0.00%] [ 0.06%] gtd_application_startup
[ 0.00%] [ 0.03%] on_plugin_loaded
[ 0.00%] [ 0.03%] rsvg_end_element
[ 0.02%] [ 0.02%] png_info_callback
[ 0.00%] [ 0.01%] gtd_plugin_manager_load_plugins
[ 0.00%] [ 0.01%] gtd_manager_load_plugins
[ 0.00%] [ 0.01%] gtd_application_local_command_line
[ 0.01%] [ 0.01%] _PyType_Lookup
[ 0.01%] [ 0.01%] do_lookup_x
[ 0.01%] [ 0.01%] strcmp
[ 0.01%] [ 0.01%] _PyObjectDict_SetItem
[ 0.01%] [ 0.01%] _PyObject_GenericGetAttrWithDict
[ 0.01%] [ 0.01%] _PyDict_LoadGlobal
[ 0.00%] [ 0.00%] _dl_name_match_p
[ 0.00%] [ 0.00%] _PyObject_FastCallDict
[ 0.00%] [ 0.00%] _PyCFunction_FastCallDict
[ 0.00%] [ 0.00%] PyObject_RichCompare
[ 0.00%] [ 0.00%] PyErr_Restore
[ 0.00%] [ 0.00%] check_match
[ 0.00%] [ 0.00%] PyType_IsSubtype
[ 0.00%] [ 0.00%] PyUnicode_DecodeUTF8Stateful
[ 0.00%] [ 0.00%] dl_open_worker
[ 0.00%] [ 0.00%] _dl_map_object
[ 0.00%] [ 0.00%] PyObject_GetAttr
[ 0.00%] [ 0.00%] PyObject_SetAttr
This doesn't happen with system installed applications (Debian GNU/Linux testing with librsvg 2.40.20 and gtk+ 3.22.26).
Please let me know if more information is required.
Thanks