From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#4485: 23.1; bookmark-save performances Date: Sat, 19 Sep 2009 10:25:00 +0200 Organization: ThierryVolpiatto Message-ID: <87d45n4a03.fsf@tux.homenetwork> Reply-To: Thierry Volpiatto , 4485@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1253350047 466 80.91.229.12 (19 Sep 2009 08:47:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Sep 2009 08:47:27 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Sep 19 10:47:20 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MovbC-0000eC-6t for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 10:47:18 +0200 Original-Received: from localhost ([127.0.0.1]:48733 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MovbB-0007HY-FA for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 Sep 2009 04:47:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Movb6-0007HS-Iw for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:47:12 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Movb0-0007EE-AU for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:47:10 -0400 Original-Received: from [199.232.76.173] (port=44438 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Movb0-0007EA-4B for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:47:06 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36700) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Movaz-0002uQ-Ec for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:47:05 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8J8l2tZ017600; Sat, 19 Sep 2009 01:47:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8J8e6hD016513; Sat, 19 Sep 2009 01:40:06 -0700 Resent-Date: Sat, 19 Sep 2009 01:40:06 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Thierry Volpiatto Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Sat, 19 Sep 2009 08:40:06 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4485 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125334908415284 (code B ref -1); Sat, 19 Sep 2009 08:40:06 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 19 Sep 2009 08:31:24 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8J8VMcE015281 for ; Sat, 19 Sep 2009 01:31:24 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MovLm-0006j9-AA for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:31:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MovLh-0006ij-Ln for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:31:21 -0400 Original-Received: from [199.232.76.173] (port=54312 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MovLh-0006ig-IT for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:31:17 -0400 Original-Received: from mail-ew0-f211.google.com ([209.85.219.211]:49723) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MovLh-0000hk-2V for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2009 04:31:17 -0400 Original-Received: by ewy7 with SMTP id 7so1841233ewy.31 for ; Sat, 19 Sep 2009 01:31:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:organization :date:message-id:user-agent:mime-version:content-type; bh=f/HTzxwdg7vJbwrf0nXVB2haYUP8aYkJYMbLB3r+V1c=; b=o1ceUdGNJ0oz3q9+YvhgzD/nRnrxDQQH2D5WBBVmPvRvLz9MihcXKMOHVNOFOUh5u4 EKTQkvivtUPpooyRLaGYbbM1UNfIwuEraRH8zzLKVaI8IBui7WbNtZzMCjKGmVQHpq4m ZVjaynDJL17GLpN7hnhQ4UIdtClqK+VZiu64E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:organization:date:message-id:user-agent :mime-version:content-type; b=Th9FUwMUM+c+QZ4Fie4oQKx1Xh88CHvUmck1fmnJgIG0yN5xAka0AIwACWPwiw1szj f9YvMJNyquZvf8Q3wUTNj3fDFa6nn7UABKswfxFgtbhnYVL8JrUvvXz7j0m7Thqc5FPe RSg0MeDqm7Cg2fR7UsUPYRM/kiRAXXY/g/HNI= Original-Received: by 10.211.147.10 with SMTP id z10mr474367ebn.28.1253349074202; Sat, 19 Sep 2009 01:31:14 -0700 (PDT) Original-Received: from tux.homenetwork (195.77.197-77.rev.gaoland.net [77.197.77.195]) by mx.google.com with ESMTPS id 28sm1965730eye.14.2009.09.19.01.31.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 19 Sep 2009 01:31:13 -0700 (PDT) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 19 Sep 2009 04:47:10 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31286 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi, with current version of `bookmark-write-file' saving a big list of bookmarks is very long: More than 50s for 195 bookmarks. That's because entire `bookmark-alist' is given to pp: ,----[ bookmark.el:bookmark-write-file ] | (pp bookmark-alist (current-buffer)) `---- With this modification i made in bookmark+.el, for same 195 bookmarks, it take only 1.24s: ,----[ bookmark+.el:bookmark-write-file ] | (progn (insert "(") | (dolist (i bookmark-alist) (pp i (current-buffer))) | (insert ")")) `---- Little chunks of `bookmark-alist' are given one by one to pp and that is faster. NOTE: Measures were made with elp-instrument-* If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.16.5) of 2009-07-31 on tux Windowing system distributor `The X.Org Foundation', version 11.0.10503000 configured using `configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--program-suffix=-emacs-23' '--infodir=/usr/share/info/emacs-23' '--with-sound' '--with-x' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-march=i686 -pipe -O2' 'LDFLAGS=-Wl,-O1'' Important settings: value of $LC_ALL: fr_FR.UTF-8 value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: fr_FR.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Emacs-Lisp Minor modes in effect: eldoc-mode: t icomplete-mode: t icicle-mode: t delete-selection-mode: t minibuffer-depth-indicate-mode: t auto-image-file-mode: t shell-dirtrack-mode: t partial-completion-mode: t show-paren-mode: t display-battery-mode: t display-time-mode: t diff-auto-refine-mode: t outline-minor-mode: t recentf-mode: t savehist-mode: t desktop-save-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: a C-c C-b w r i t e C-SPC C-n C-n C-n M-w a C-c C-b w r i t e C-SPC C-e M-w M-x r e p o r t Recent messages: bunzip2ing elisp.info.bz2...done bunzip2ing elisp-11.info.bz2...done Type C-x 4 C-o RET to restore the other window, C-M-v to scroll help. [2 times] [2 times] Mark set [2 times] [2 times] Mark set Auto-saving... Mark set Computing completion candidates... -- A + Thierry Volpiatto Location: Saint-Cyr-Sur-Mer - France