Apparently, it is expensive to peek into C structures from Python via pygobject, so better to cache the result in Python if it is going to be reused. My function is now more than 3x faster now that I'm doing this. gitlab.gnome.org/GNOME/at-spi2…

Peter Vágner reshared this.