all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Excess consing comes from x-gtk-map-stock
@ 2008-11-28 22:38 Chong Yidong
  2008-11-29  6:51 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Chong Yidong @ 2008-11-28 22:38 UTC (permalink / raw)
  To: emacs-devel; +Cc: Jan Djärv

I think the excess consing, leading to frequent garbage collection,
comes from x-gtk-map-stock.  This is called by update_frame_tool_bar on
each redisplay, for each tool-bar item.  Each call advances
consing_since_gc by about 400 bytes, and this adds up rather quickly.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Excess consing comes from x-gtk-map-stock
  2008-11-28 22:38 Excess consing comes from x-gtk-map-stock Chong Yidong
@ 2008-11-29  6:51 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2008-11-29  6:51 UTC (permalink / raw)
  To: emacs-devel; +Cc: Jan Djärv

Chong Yidong <cyd@stupidchicken.com> writes:

> I think the excess consing, leading to frequent garbage collection,
> comes from x-gtk-map-stock.  This is called by update_frame_tool_bar
> on each redisplay, for each tool-bar item.  Each call advances
> consing_since_gc by about 400 bytes, and this adds up rather quickly.

I've installed a fix (caching GTK stock icon names).  Emacs should be
slightly snappier now, at least on GTK.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-29  6:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-28 22:38 Excess consing comes from x-gtk-map-stock Chong Yidong
2008-11-29  6:51 ` Chong Yidong

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.