GNOME Bugzilla – Bug 631203
Scrolling in GtkTextView can use 100% cpu
Last modified: 2010-10-03 10:35:12 UTC
Some of us have noticed some slowness and 100% cpu usage on GtkSourcView current gtk master branch. I actually tested the scrolling with the TextView demo on gtk-demo and found the bug is actually on TextView and not on GtkSourceView. Happily, this allowed me to do git bisect on gtk and find that commit 331999 seems to be the responsible for the perf regression.
Created attachment 171612 [details] [review] patch fixing the issue It turns out it was a missuse of cairo_clip_extents. The attached patch fixes the issue. Please review.
commit 846f774642c06c88358ef3c4c8174d180caf1be2 Author: José Aliste <jaliste@src.gnome.org> Date: Sun Oct 3 12:14:48 2010 +0200 textview: Fix clip usage The previous code used cairo_clip_extents() and interpreted its parameters wrong.