On 11 August 2011 12:30, Gang Chen <gang.chen.cn@xxxxxxxxx> wrote: > g_utf8_offset_to_pointer scans the buffer. Too expensive. This is why > I ask why the text iterator doesn't cache the byte index. I guess since a gtk_text_buffer is a b-tree of lines the byte offset from the beginning is not very useful. The iterator never needs the byte offset, so it never has it to cache. Cheers Lex _______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list