From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Sv: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?] Date: Tue, 30 Mar 2021 15:14:35 +0200 Message-ID: <87zgykn5qc.fsf@gnus.org> References: <87r1jxd3d8.fsf@gnu.org> <8e549f23-db75-2ef1-4399-0fb52e5efa6f@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39583"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Arthur Miller , "emacs-devel@gnu.org" , Daniel Brooks , Darshit Shah , Adam Porter , "T.V Raman" , "Jose E. Marchesi" To: Daniel =?utf-8?Q?Mart=C3=ADn?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 30 15:16:17 2021 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 1lREED-000AAg-8S for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 15:16:17 +0200 Original-Received: from localhost ([::1]:48422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lREEC-0002Eh-9O for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 09:16:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRED4-0001fi-7r for emacs-devel@gnu.org; Tue, 30 Mar 2021 09:15:06 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:38768) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRED1-00063O-8G; Tue, 30 Mar 2021 09:15:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QVEGy9Dct3t/fEJzsVouNsau0Sa6BvhFhmPQmZinS5I=; b=vUtKBDk+b2Sho6PoTE26uHrIDS MJwqz/WgYPHLS/io67xTujDFY5jtkyIJi+C8btNNu21ztjhfo2exI/b6LWqKo0CmsvDiF0GC1xouE UTErQHhhcscJI6u1NqgKyu62F4Tkk/RLE8jCxfirLt2EOgCc5gljgwyJlXIyyz7Zg1gQ=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lRECb-00058m-Ft; Tue, 30 Mar 2021 15:14:50 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAG1BMVEX89Obm3dLExsbI raetnpqrP06gX2aKZWf///+53gUxAAAAAWJLR0QIht6VegAAAAd0SU1FB+UDHg0GFDljmkUAAAGz SURBVDjLjZK9c5wwEMVXwCStVsdQI8HhFgS5tAfodH2MqB2+0nuc+/sDHl8yXuyZbKPh/dint5IA /rOY/Ej1YvDKD3TfaPAqTmWO3/qqYYrqwYuw863fOwVGVsvJzTun0Jjr/OjmMwXZL1tfutnlFERL L4+dnXZWx5t7zm79uLM6XdyPq22nhraIrB9Nok2NBBxSd32udNaxHZj7rtJHR6xYWfWdzV7mnjS0 xrp+nt38kzS0VerW6i80U/k9dd1KOgISIYzrzG9D5mOFhtOk1MMQE7De26lWIh1pWBND0OSY7k6K xdtTQEUa/FdnxoGeYHR+FRBoR1TW26JUSkOFZ5DgNdIQANHT+gLDRklJvfJDwbRSwiQ0b1L6k1bG 0O2hKoVZSxd09AR5jKjWIQlQCjnjyGJGiGrQ44gecO+9WapQIAoJKN+3CCGLQgoUguRiiRLIcN3m rtw5owNs3/5dPBAgOC80KwE15HVdlOEbOFg+pFU6gB1hwMdxWd5AZGD6qkwNdoDO66Z/YAQT8Cnf wOLbxYb8L7h9ydtms1qCbDndQdhCE5x5CUkBkgHNTUt98sMfu55QrmcV2VoAAAAldEVYdGRhdGU6 Y3JlYXRlADIwMjEtMDMtMzBUMTM6MDY6MjArMDA6MDCEhiWdAAAAJXRFWHRkYXRlOm1vZGlmeQAy MDIxLTAzLTMwVDEzOjA2OjIwKzAwOjAw9dudIQAAAABJRU5ErkJggg== X-Now-Playing: 23 Skidoo's _Ni d'eve, ni d'adam_: "Calypso" In-Reply-To: ("Daniel =?utf-8?Q?Mart=C3=ADn=22's?= message of "Tue, 30 Mar 2021 14:03:58 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:267167 Archived-At: Daniel Mart=C3=ADn writes: > - url.el is slow compared to using curl as an inferior process. Again, > the blog post cites some possible culprits, which I don't know if they > still apply to Emacs 28, so I think we should profile url.el to > identify its bottlenecks more precisely. url.el is slow (and slightly buggy and has an awkward interface); a new implementation is on the scratch/with-url branch, which I will merge any... month... now. The other issue is that Emacs has a generally slow process interface due to the way it's geared towards inputting artefacts from the file systems, with all that entails for coding systems etc -- which is 100% irrelevant for the networking protocols that are dominant today, none of which are character oriented, but only deal with streams of octets. (In addition, the interfaces are slow in themselves, with process filter functions being the primary culprit in my tests.) These things are solvable and will result in all Emacs networking processes not being as slow as they are now... but the work just has to be done. Starting to work on this has been my priority for ... a year, but things keep taking precedence. I don't see adding a new C level library for HTTP/1.1 being very useful, but for HTTP/3 it might make more sense. Unless somebody sees implementing HTTP/3 on the Lisp level as being a fun challenge, which might happen. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no