From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: high cpu load with image loading Date: Wed, 01 Sep 2010 10:35:30 +0200 Message-ID: References: <20100831190156.EB20239C659@djcbsoftware.nl> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1283330159 729 80.91.229.12 (1 Sep 2010 08:35:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Sep 2010 08:35:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: djcb@djcbsoftware.nl Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 01 10:35:58 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OqinQ-0000Ht-A2 for ged-emacs-devel@m.gmane.org; Wed, 01 Sep 2010 10:35:52 +0200 Original-Received: from localhost ([127.0.0.1]:32970 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqinP-0001wA-HG for ged-emacs-devel@m.gmane.org; Wed, 01 Sep 2010 04:35:51 -0400 Original-Received: from [140.186.70.92] (port=44392 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OqinG-0001vq-Nf for emacs-devel@gnu.org; Wed, 01 Sep 2010 04:35:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OqinF-00063h-FK for emacs-devel@gnu.org; Wed, 01 Sep 2010 04:35:42 -0400 Original-Received: from smtprelay-h21.telenor.se ([195.54.99.196]:57646) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OqinF-000634-6Z for emacs-devel@gnu.org; Wed, 01 Sep 2010 04:35:41 -0400 Original-Received: from ipb4.telenor.se (ipb4.telenor.se [195.54.127.167]) by smtprelay-h21.telenor.se (Postfix) with ESMTP id 45CCBC375 for ; Wed, 1 Sep 2010 10:35:32 +0200 (CEST) X-SENDER-IP: [83.227.138.150] X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AktFAOCsfUxT44qWPGdsb2JhbACHaotVjSAMAQEBATUtvWCFOQSKEYMM X-IronPort-AV: E=Sophos;i="4.56,303,1280700000"; d="scan'208";a="1666009732" Original-Received: from ua-83-227-138-150.cust.bredbandsbolaget.se (HELO www.verona.se) ([83.227.138.150]) by ipb4.telenor.se with ESMTP; 01 Sep 2010 10:35:32 +0200 Original-Received: from localhost.localdomain (unknown [192.168.201.6]) by www.verona.se (Postfix) with ESMTP id 5836971549E; Wed, 1 Sep 2010 10:35:31 +0200 (CEST) In-Reply-To: <20100831190156.EB20239C659@djcbsoftware.nl> (Dirk-Jan C. Binnema's message of "Tue, 31 Aug 2010 22:01:56 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:129545 Archived-At: "Dirk-Jan C. Binnema" 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