all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* high cpu load with image loading
@ 2010-08-31 19:01 Dirk-Jan C. Binnema
  2010-09-01  8:35 ` joakim
  0 siblings, 1 reply; 3+ messages in thread
From: Dirk-Jan C. Binnema @ 2010-08-31 19:01 UTC (permalink / raw)
  To: emacs-devel

Hi,

I'm using a fairly recent emacs (24.0.50.8), but when trying to load an image
with

   (put-image (create-image "pic.jpg") 0) ;; some normal 1024x768 jpeg image

I only get a little square, and emacs consumes ca. 60% cpu, with X taking a
lot of the rest -- this continues for at least a minute or so. I checked with
oprofile, I get the following profile (see below). So what is this
assq_no_quit doing?

Best wishes,
Dirk.


--8<---------------cut here---------------start------------->8---
CPU: Core 2, speed 1601 MHz (estimated)
Counted CPU_CLK_UNHALTED events (Clock cycles when not halted) with a unit mask of 0x00 (Unhalted core cycles) count 100000
samples  %        symbol name
135329   50.5676  assq_no_quit
25840     9.6555  mark_object
6252      2.3361  Fgarbage_collect
5389      2.0137  re_match_2_internal
4981      1.8612  Fbyte_code
3240      1.2107  oblookup
2623      0.9801  Fstring_equal
2038      0.7615  Fplist_get
1875      0.7006  lookup_char_property
1835      0.6857  readchar
1833      0.6849  hash_string_case_insensitive
1810      0.6763  re_search_2
1370      0.5119  mark_char_table
1359      0.5078  Fall_completions
1318      0.4925  append_glyph
1310      0.4895  read1
1305      0.4876  Ffuncall
1272      0.4753  mark_vectorlike
1190      0.4447  internal_equal
1143      0.4271  x_produce_glyphs
1065      0.3980  merge_face_vectors
1062      0.3968  casify_object
1048      0.3916  sxhash
1044      0.3901  Fcompare_strings
1001      0.3740  display_mode_element
972       0.3632  set_buffer_internal_1
958       0.3580  Fassq
899       0.3359  find_interval
894       0.3341  validate_interval_range
882       0.3296  readbyte_from_file
770       0.2877  specbind
[...]
--8<---------------cut here---------------end--------------->8---





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

end of thread, other threads:[~2010-09-01 18:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-31 19:01 high cpu load with image loading Dirk-Jan C. Binnema
2010-09-01  8:35 ` joakim
2010-09-01 18:59   ` Dirk-Jan C. Binnema

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.