From: joakim@verona.se
To: djcb@djcbsoftware.nl
Cc: emacs-devel@gnu.org
Subject: Re: high cpu load with image loading
Date: Wed, 01 Sep 2010 10:35:30 +0200 [thread overview]
Message-ID: <m3tym9uai5.fsf@verona.se> (raw)
In-Reply-To: <20100831190156.EB20239C659@djcbsoftware.nl> (Dirk-Jan C. Binnema's message of "Tue, 31 Aug 2010 22:01:56 +0300")
"Dirk-Jan C. Binnema" <djcb.bulk@gmail.com> writes:
> 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?
Could you possibly do a m-x report-emacs-bug ?
It would be nice to see your configure options etc.
Also provide a link to your image.
>
> Best wishes,
> Dirk.
>
>
> 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
> [...]
--
Joakim Verona
next prev parent reply other threads:[~2010-09-01 8:35 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-31 19:01 high cpu load with image loading Dirk-Jan C. Binnema
2010-09-01 8:35 ` joakim [this message]
2010-09-01 18:59 ` Dirk-Jan C. Binnema
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3tym9uai5.fsf@verona.se \
--to=joakim@verona.se \
--cc=djcb@djcbsoftware.nl \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.