From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.systemreboot.net (mugam.systemreboot.net [139.59.75.54]) by localhost (mpop-1.4.7) with POP3 for ; Tue, 19 May 2020 07:57:28 +0530 Return-path: Envelope-to: arunisaac@systemreboot.net Delivery-date: Tue, 19 May 2020 02:20:21 +0530 Received: from [192.168.2.1] (helo=sender4-of-o53.zoho.com) by systemreboot.net with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (Exim 4.93) (envelope-from ) id 1jamiJ-000MZl-Ri; Tue, 19 May 2020 02:20:21 +0530 ARC-Seal: i=1; a=rsa-sha256; t=1589835015; cv=none; d=zohomail.com; s=zohoarc; b=Vp731Hwze1SbdRRMYqyeneDmsr3107VoMLjRrhkcSSiGZDcNwx0NuARkeE8Q0VZsSUmm1agt5hNr80ZFR79YDnuV9LqIvymh9zmLVCL/LY82+lYHDuunPD6kvU4bdD/vYyVOSq0zpeE0YUjqHx+7LDUFh9kM8tPCpQ8k2Fj6CWE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589835015; h=Content-Type:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=tAPFTv3sI5PjenR0ehus4KNf58544oHLrNd2wixolKA=; b=VFBYp3EJ9rBe+vLou9kl1SskmJj3Ppbti6el1J23dX40fqdJxx1Nme3LkWqspeAPDBGJfWkNJBF1+t6ig09w2ziYUHCdzNG3BH5IRRhk+ZHxpfnjsXYoSYtm2Ty4Q0h0tI3FPWPWcN3gZwjb1DDCRCN9krZsda3E2qA2xz9JCAA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589835015; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type; bh=tAPFTv3sI5PjenR0ehus4KNf58544oHLrNd2wixolKA=; b=QFMmbLignBwZUZz4xudnUeT5qCVVkFKvxxKr/uCCu/f0SNsqdkYuv3f0ktjone3/ bW3MoylJRyeYn1KP7VWSPsdWW/LWB/GFok8sJl9ClQnaeFqGEaL4q8S0jfu0mwAr6LF oJo/A/9cDTlduNpLFP0/rDuOXIb2DkPa8lyodcy8= Received: from localhost (p54ad4ca8.dip0.t-ipconnect.de [84.173.76.168]) by mx.zohomail.com with SMTPS id 1589835013047769.0468427041747; Mon, 18 May 2020 13:50:13 -0700 (PDT) References: <87a726gqsx.fsf@elephly.net> User-agent: mu4e 1.4.4; emacs 26.3 From: Ricardo Wurmus To: Arun Isaac Cc: guile-email@systemreboot.net Subject: Re: [guile-email] slow parse of email with huge attachment In-reply-to: X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Mon, 18 May 2020 22:50:09 +0200 Message-ID: <87y2ppezni.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain X-ZohoMailClient: External List-Id: Hi Arun, > Yes, guile-email is quite slow. I think it is because it does multiple > passes of each email trying to split MIME entities and what not. For a > long time, I've been meaning to rewrite guile-email to only do a single > pass. It's quite a bit of work, but I'll try to finish it in a week. Wow, I appreciate your work! > Meanwhile, if you have any benchmarking scripts, do share those. It > would help me get a head start on the problem. All I did was wrapping the parse-email call for the extracted email from that Debbugs log file in statprof to see what took the most time. Since that one email is pretty big it took a few seconds to complete. You can get the mbox here: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=35518;mbox=yes -- Ricardo