From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.devel Subject: Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?] Date: Tue, 22 Dec 2020 00:51:08 +0100 Message-ID: <87zh26g1lf.fsf@posteo.net> References: <835z4vrprq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24091"; mail-complaints-to="usenet@ciao.gmane.io" Cc: adam@alphapapa.net, rms@gnu.org, arthur.miller@live.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 22 00:52:32 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1krUye-0006Am-Al for ged-emacs-devel@m.gmane-mx.org; Tue, 22 Dec 2020 00:52:32 +0100 Original-Received: from localhost ([::1]:42794 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krUyd-0002AE-8J for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 18:52:31 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:32992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krUxP-0001iX-Gv for emacs-devel@gnu.org; Mon, 21 Dec 2020 18:51:15 -0500 Original-Received: from mout01.posteo.de ([185.67.36.65]:49698) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krUxM-0003dY-Vv for emacs-devel@gnu.org; Mon, 21 Dec 2020 18:51:15 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id AA46316005F for ; Tue, 22 Dec 2020 00:51:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1608594669; bh=XTljI7Y3Ax2GpWLoFMTybsKBJfNi3i3UORhzKFyqSs0=; h=From:To:Cc:Subject:Date:From; b=RXqJLDDscNWihl4jpC9w1yZPYe2xHXzt5Tj0nJkXrvE3RJ+6BN23SmT1dTUceANYx Fq4rQN1v2Q36HnNYZeajSXuUhLphR/Fp2nRlby6HPZ7TavkQj1hKJhWyf0JyVxGFXG syomHE8tG56R+NTmeOT8bAMbsYyAriKU8fP7lL99jjEOpTz2yoPkJ/Bbo1pVGnPU3j Bb3ghwIyDn3r2JGifG387vTrT4QsGJrxdp/verDew06xE7h+seDLdS0w0stlNrOKQv 6c0Br3AvXdp9bcVmz4iK3Ty0/rwvBzvdXbDciAG8u51AP9j/Klq5xB3PQZ/ujDbWgA almIH5qvkzXPQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4D0GSr5wMsz6tmG; Tue, 22 Dec 2020 00:51:08 +0100 (CET) In-Reply-To: <835z4vrprq.fsf@gnu.org> (message from Eli Zaretskii on Mon, 21 Dec 2020 20:13:29 +0200) Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:261453 Archived-At: Eli Zaretskii writes: >> From: Arthur Miller >> Date: Mon, 21 Dec 2020 18:41:02 +0100 >> Cc: adam@alphapapa.net, "Philip K." , rms@gnu.org, >> emacs-devel@gnu.org >> >> Eli Zaretskii writes: >> >> > Before this is taken as an indication that using one of these >> > libraries will automagically make Emacs as fast as the applications >> > like curl, we should carefully profile url.el and find out which >> > part(s) of it cause the slowness. Because it could well be that what >> > makes url.el slow will also make Emacs using libcurl slow. >> >> Maybe this library can be of help while testing/profiling > > We have a built-in profiler in Emacs. In that case, gnutls-negotiate seems to be the most suspicious function, using over 50%-60% of the CPU time, at least on my machine. This also makes sense, as TLS sites seem to take longer to load than regular, non-encrypted ones. -- Philip K.