Re: Gtk::Text widget



-> > -> I think "memory hog" is an overstatement; last time I measured it the
-> > -> overhead without tags was less than 3 bytes per character, including
->               ^^^^^^^^^^^^
-> > 
-> > 	Whoa!  3 bytes per character?  Whatever happened to the 40-byte
-> > overhead of every tag toggle (and every Line parent node)?
-> 
-> Note "without tags".

	I'm sorry, I was referring to your statement which I cut out from 
the top, which was:

-> > -> unrelated to the widget). Using lots and lots of tags could double
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^
-> > -> your memory usage, but probably not much worse than that.

	If every on/off pair of tags takes 80 bytes, and you consider a
random line of syntax-highlighted source code:

  if (active_window_stack)

	...and "if", "("/")", and "active_window_stack" each have their
own color, that's 4 * 80 bytes per on/off tag pair, so 320 additional
bytes on top of 25 bytes worth of text--not counting the additional
line/tree overhead used to store the text.

	I'd consider that a memory hog.  Am I missing something?


-> TkText has regex search, my widget doesn't because we don't have a
-> regex lib in GTK.

	Somebody posted a Glib-ized regex to the list a few weeks ago, and
it got some feedback and went through a couple of iterations.  Is there
any reason not to add it to Glib?  I think it would be very useful to
have.


-> > 	I don't currently have a dev environment where I can muck up my
-> > Gtk+ libraries/headers with the CVS version, so I haven't seen it in a
-> > while.
-> 
-> The CVS version parallel installs, it won't break your current install.

	I've seen several emails (including today) between Tim and Owen
discussing different filenames for concurrent installs; since they haven't
finished that work yet, I assumed it was best to wait until they had it
straightened out.

	Is there are How-to/FAQ about developing with concurrent versions?
How do you have your environment set up?  What does your /etc/ld.so.conf
look like?  What option must I give to ./configure?  Etc.

	I can't afford to hose my working system.


Thanks,
Derek






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]