Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 24DAC429E43 for ; Fri, 14 Jan 2011 05:48:44 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0Oxkh1RrwWEy for ; Fri, 14 Jan 2011 05:48:43 -0800 (PST) Received: from homiemail-a17.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by olra.theworths.org (Postfix) with ESMTP id 8A82D429E40 for ; Fri, 14 Jan 2011 05:48:43 -0800 (PST) Received: from homiemail-a17.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTP id 701CE7A8063; Fri, 14 Jan 2011 05:48:41 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sspaeth.de; h=from:to:cc:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=ifNXyz/P/ULvR+8grl6LItOhfMr KcRKIQ27dlza7omZfFo06DHSCHady9cLTsgXYhnYa7i9eYWa6qxLrfnFfjft5bgg QU0xZeYownb821qIvHuouKjwkLvQYBa+go9yUXAGCEXtM+tN90+DMBlNNEEkMPB6 p1XVdebL2WZtHya4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sspaeth.de; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=p76GravCEuLx4fAT9//TVERj4eQ=; b=V WRxPW05VAK2yqIBROUdhTDjPJFCLr9PoF6g9bBIMRhz0sghp2/hNBRnms+DsFtGK 7zizZ93I0KUoA+PK0QiPr3SoUfxVtPK/z1Gt5mp/MFfyZzCIM7uKCSpmjBaM7WqN zNV5ROCFXDtrpKALAxg9iDq4ARdvfNSZKmJVvQH9oI= Received: from spaetzbook.sspaeth.de (mtec-hg-docking-1-dhcp-186.ethz.ch [129.132.133.186]) (Authenticated sender: fax@sspaeth.de) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id E93577A8058; Fri, 14 Jan 2011 05:48:39 -0800 (PST) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Fri, 14 Jan 2011 14:48:38 +0100 From: Sebastian Spaeth To: Christophe-Marie Duquesne Subject: Re: About the json output and the number of results shown. In-Reply-To: References: <8762ttf5wy.fsf@SSpaeth.de> User-Agent: Notmuch/0.5-58-g9741d28 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Fri, 14 Jan 2011 14:48:38 +0100 Message-ID: <87tyhboatl.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Jan 2011 13:48:44 -0000 On Thu, 13 Jan 2011 19:46:29 +0100, Christophe-Marie Duquesne wrote: > > Alternatively, you could use the python bindings to libnotmuch and call > > the functions directly. You could do that in a unthreaded or threaded > > fashion... > > I've had a look to the python libnotmuch documentation. My problem > with this API is that, unless I did not read it correctly, if I use > one of its functions in a threaded fashion, I still have to wait for > this function to finish until I get results. When using the command > line tool, I can process the text as it gets printed on stdout, and I > have data to show to the user even though notmuch has not finished to > output it... Well, you have to wait until the "search_messages()" function returns and once it does you can output text as you go, by iterating through the threads/mails. I am not sure that the command line client is any faster as that with it's interactive output. But I haven't investigated the performance closely. Sebastian