Re: Gtk::Text widget
- From: Mark Leisher <mleisher crl nmsu edu>
- To: gtk-list gnome org
- Subject: Re: Gtk::Text widget
- Date: Wed, 19 Jul 2000 16:55:54 -0600 (MDT)
Havoc> A gapped text buffer is also good enough for a programming editor,
Havoc> but it's not going to scale to huge files, it isn't UTF8-friendly,
Havoc> and many operations can be slower or more difficult or less
Havoc> flexible than they are for the tree-based widget. For example a
Havoc> search for all characters with a given tag will be quite fast with
Havoc> the tree, and either slow or memory-hungry with the gapped buffer.
Is there really somebody using UTF-8 as the internal encoding in a text
widget? I found it to be more hassle than it was worth and didn't provide
enough memory or speed savings in the general case to keep it.
I would like to point out that the gap buffer I'm using doesn't noticeably
suffer performance-wise until about 4M of text on our Solaris boxes. IMHO,
this is good enough for a general text editor :-)
-----------------------------------------------------------------------------
Mark Leisher
Computing Research Lab Once you fully apprehend the vacuity of a
New Mexico State University life without struggle, you are equipped
Box 30001, Dept. 3CRL with the basic means of salvation.
Las Cruces, NM 88003 -- Tennessee Williams
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]