From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.user Subject: Re: Interpreting statprof Date: Tue, 17 Sep 2013 20:05:12 +0200 Message-ID: <87li2vtjc7.fsf@pobox.com> References: <87r4cn1l42.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1379441157 11160 80.91.229.3 (17 Sep 2013 18:05:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 18:05:57 +0000 (UTC) Cc: "guile-user@gnu.org" To: Dmitry Bogatov Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 17 20:06:02 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VLzey-0002Lu-MI for guile-user@m.gmane.org; Tue, 17 Sep 2013 20:06:00 +0200 Original-Received: from localhost ([::1]:42876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLzey-0007j1-8F for guile-user@m.gmane.org; Tue, 17 Sep 2013 14:06:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32995) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLzei-0007ZK-MD for guile-user@gnu.org; Tue, 17 Sep 2013 14:05:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLzee-00024N-7J for guile-user@gnu.org; Tue, 17 Sep 2013 14:05:44 -0400 Original-Received: from a-pb-sasl-quonix.pobox.com ([208.72.237.25]:37107 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLzeY-00023k-Qr; Tue, 17 Sep 2013 14:05:34 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 9CBC5E9F6; Tue, 17 Sep 2013 14:05:34 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=/A57c1Ahtmv0XE/bf1un/tcPzjA=; b=N3hVfY evGPJ1snKztjv10TaNriY609sOik/7K5Mz8PWjo5FbMNbJZqPF67AltM1M+LslTh mTk2watIMBtksZhAZWNkNoz8gKPNj5sPdJ40yE4R2i3F9SdssZy40g84ihso8esJ PJosis0auRRoPRGINkUM6jVqo+QZlTvuT0Zq0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=Oc0T83/gwScFx8zPo+n7h6DyOWATj51e R8pdZSYxiLDDjjnavFrXbUMiR+R3VHDGp5cWAOjPA3n35QfW77/AgjMgP2OxcPbY L6GHY4xnpSD6wG3pCRe+4JQnM19z81YCkpgsWibH7Ss1+BrS5pO2dyy75+eGpkFX +qVwIy8zQG0= Original-Received: from a-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTP id 94618E9F5; Tue, 17 Sep 2013 14:05:34 -0400 (EDT) Original-Received: from badger (unknown [88.160.190.192]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-quonix.pobox.com (Postfix) with ESMTPSA id C4707E9F4; Tue, 17 Sep 2013 14:05:33 -0400 (EDT) In-Reply-To: <87r4cn1l42.fsf@gnu.org> (Dmitry Bogatov's message of "Tue, 17 Sep 2013 20:14:21 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Pobox-Relay-ID: BF4675D0-1FC3-11E3-B140-CE710E5B5709-02397024!a-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 208.72.237.25 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10812 Archived-At: On Tue 17 Sep 2013 18:14, Dmitry Bogatov writes: > Hello! > > Today I tried to statprof my toy application, that uses htmlprag > since it is too slow (4 sec on one page) vs 0.5 with Python. > Statprof says, that most of time takes `eval` function, but I checked > htmlprag source --- it does not use eval. So question is where is it > called and what can I do to speedup my application? > > PS. Should I attach source file and html file to parse? > > % cumulative self > time seconds seconds name > 56.48 4.22 2.38 eval > 11.82 0.50 0.50 memoized-expression-data > 9.22 0.39 0.39 list-ref > 8.36 0.35 0.35 memoized-expression-typecode Probably this means that your program is being interpreted, rather than compiled. Or something is being interpreted, anyway. Check that you have auto-compilation on. Cheers, Andy > 4.03 0.17 0.17 write-char > 2.31 0.10 0.10 get-output-string > 1.44 0.06 0.06 list-set! > 1.15 0.05 0.05 variable? > 1.15 0.05 0.05 open-output-string > 0.86 0.04 0.04 read-char > 0.86 0.04 0.04 # > 0.58 0.02 0.02 eqv? > 0.29 0.01 0.01 equal? > 0.29 0.01 0.01 memv > 0.29 0.01 0.01 map > 0.29 0.01 0.01 string->symbol > 0.29 0.01 0.01 eof-object? > 0.29 0.01 0.01 # > 0.00 4.22 0.00 statprof > 0.00 4.22 0.00 save-module-excursion > 0.00 4.22 0.00 # > 0.00 4.22 0.00 # > 0.00 4.22 0.00 load-compiled/vm > 0.00 4.22 0.00 apply-smob/1 > 0.00 4.22 0.00 call-with-prompt > 0.00 4.22 0.00 catch > 0.00 4.22 0.00 perform-action > --- > Sample count: 347 > Total time: 4.218837499 seconds (0.176613742 seconds in GC) > > -- > Best regards, Dmitry Bogatov , > Free Software supporter and netiquette guardian. > git clone git://kaction.name/rc-files.git --depth 1 > GPG: 54B7F00D > Html mail and proprietary format attachments are forwarded to /dev/null. -- http://wingolog.org/