1 Return-Path: <felipe.contreras@gmail.com>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 8E3AD418C36
\r
6 for <notmuch@notmuchmail.org>; Sat, 5 Jun 2010 04:14:03 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
\r
13 DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id Qg-WxKJVO8Wr for <notmuch@notmuchmail.org>;
\r
17 Sat, 5 Jun 2010 04:13:51 -0700 (PDT)
\r
18 Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com
\r
20 by olra.theworths.org (Postfix) with ESMTP id F061A41733F
\r
21 for <notmuch@notmuchmail.org>; Sat, 5 Jun 2010 04:13:08 -0700 (PDT)
\r
22 Received: by mail-fx0-f53.google.com with SMTP id 4so284086fxm.26
\r
23 for <notmuch@notmuchmail.org>; Sat, 05 Jun 2010 04:13:08 -0700 (PDT)
\r
24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
25 h=domainkey-signature:received:received:from:to:cc:subject:date
\r
26 :message-id:x-mailer:in-reply-to:references;
\r
27 bh=plna9I+05FKqjB+qbwsEIN4orht3eSw5nMN6nWmcNvM=;
\r
28 b=ABmk0ssY32HXiEFRQWhCtfGIfu2WDOgOoNqvFWEFjbCqJKgjSGKVlWSDJGXiuSiorA
\r
29 lDrHLj/ox39tssy4RG2PaCKQhYgewMuug20EP3qbMjXreVaM4KWQOf34mkg2IYwukort
\r
30 rSGZ820ie3G8Ll2e7NqE+PF2hgJ6bWLld6MzI=
\r
31 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
32 h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;
\r
33 b=rfqrJLi7aG3eiuo26bxaCbSdj8SRfLJ+bZiImBVtrFq8fo017IMQMhw5ZaLxu6yB8r
\r
34 /mmUc/frGs8mWS+ljsD6EeX6m5INSfQHzsmo1hKJK5nwEWbWOnryyX6cqG6Ah1lMEGsr
\r
35 ITvGJNwyZ29s9XTlL9zpl/XtWKy+GrYlK1oRo=
\r
36 Received: by 10.204.46.196 with SMTP id k4mr4880440bkf.72.1275736388571;
\r
37 Sat, 05 Jun 2010 04:13:08 -0700 (PDT)
\r
38 Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80])
\r
39 by mx.google.com with ESMTPS id
\r
40 z17sm9580719bkx.18.2010.06.05.04.13.07
\r
41 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
42 Sat, 05 Jun 2010 04:13:08 -0700 (PDT)
\r
43 From: Felipe Contreras <felipe.contreras@gmail.com>
\r
44 To: notmuch@notmuchmail.org
\r
45 Subject: [PATCH 8/9] vim: run(): optimize non-debug path
\r
46 Date: Sat, 5 Jun 2010 14:12:41 +0300
\r
47 Message-Id: <1275736362-22771-9-git-send-email-felipe.contreras@gmail.com>
\r
48 X-Mailer: git-send-email 1.7.1
\r
49 In-Reply-To: <1275736362-22771-1-git-send-email-felipe.contreras@gmail.com>
\r
50 References: <1275736362-22771-1-git-send-email-felipe.contreras@gmail.com>
\r
51 Cc: Bart Trojanowski <bart@jukie.net>
\r
52 X-BeenThere: notmuch@notmuchmail.org
\r
53 X-Mailman-Version: 2.1.13
\r
55 List-Id: "Use and development of the notmuch mail system."
\r
56 <notmuch.notmuchmail.org>
\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
58 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
60 List-Post: <mailto:notmuch@notmuchmail.org>
\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
63 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
64 X-List-Received-Date: Sat, 05 Jun 2010 11:14:03 -0000
\r
66 Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
\r
68 vim/plugin/notmuch.vim | 13 ++++++++-----
\r
69 1 files changed, 8 insertions(+), 5 deletions(-)
\r
71 diff --git a/vim/plugin/notmuch.vim b/vim/plugin/notmuch.vim
\r
72 index 7b49015..8d5d1c3 100644
\r
73 --- a/vim/plugin/notmuch.vim
\r
74 +++ b/vim/plugin/notmuch.vim
\r
75 @@ -1186,13 +1186,16 @@ function! s:NM_run(args)
\r
76 call map(words, 's:NM_shell_escape(v:val)')
\r
77 let cmd = g:notmuch_cmd . ' ' . join(words) . '< /dev/null'
\r
79 - let start = reltime()
\r
80 - let out = system(cmd)
\r
81 - let err = v:shell_error
\r
82 - let delta = reltime(start)
\r
84 if exists('g:notmuch_debug') && g:notmuch_debug
\r
85 + let start = reltime()
\r
86 + let out = system(cmd)
\r
87 + let err = v:shell_error
\r
88 + let delta = reltime(start)
\r
90 echo printf('[%s] {%s} %s', reltimestr(delta), string(err), string(cmd))
\r
92 + let out = system(cmd)
\r
93 + let err = v:shell_error
\r