From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arthur Miller Newsgroups: gmane.emacs.devel Subject: Re: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?] Date: Mon, 21 Dec 2020 18:41:02 +0100 Message-ID: References: <15c3cc00-f56e-6e52-2228-30817639315a@gmail.com> <87v9cwek4u.fsf_-_@alphapapa.net> <874kkfgkob.fsf@posteo.net> <83blenrs38.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="4152"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: adam@alphapapa.net, "Philip K." , rms@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 21 18:42:08 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 1krPCC-0000wM-7p for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 18:42:08 +0100 Original-Received: from localhost ([::1]:36514 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1krPCB-0003gH-9C for ged-emacs-devel@m.gmane-mx.org; Mon, 21 Dec 2020 12:42:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57338) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krPBI-0003CU-D7 for emacs-devel@gnu.org; Mon, 21 Dec 2020 12:41:12 -0500 Original-Received: from mail-db8eur05olkn2066.outbound.protection.outlook.com ([40.92.89.66]:26720 helo=EUR05-DB8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krPBD-0000qA-P1; Mon, 21 Dec 2020 12:41:12 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nhPl/ZP9RhRgFauSDJxwYU6pdGyk2BbhKqvQH0Ppy53tsB7mayCJDosk5sZSOojsBctxomd2VCB8pBSXKtabfeo8pSBCAi3nxOskni2DdWQfPgsFcn7u8oobrPBpJj/sKq7Inwn2K/vIE9GXVLlQW/Niu3ibcDUydqp0kpXRGzU2ZZi7DS5vf0sv0w9HQGeaufwmUwlYIilvYmIn7I/1URoB9iRo/PWj1pKAuOHUrSP1ovezIwyLpr4lgNguS0X78FqUG8LajOxpaXetQ5UaKGBNp/pX8K78LMOiifHCaa6tsEzEXwsCng+3APAh88S5biJlVlGNgPxtcfkADp2bcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jX/2d7042JE7o9rBdBaeSbtXQKNrtw5sYZvzihCoRa0=; b=A9m06lK+K9Q1dZzbmtiXDbe/21NB9tiQSOoc1nzUIjY3BwZ79/nwKBnrlHCFBVciH3ssqy7T5PQnsHGvIpl6tzyufOzceDZtBcbxRtHMlNXzvBZNClPnE/Bt/AbBcK72FiXM66FD7mRepftg4oe+wWnzrQjl5eK/9kWxUaEnWshJ4nCdpZ2veSFtylZ0OdrPZcgT6wuN4Q0sYYSfNSesEH0XmIuWSy/qBNcYz5f8yOJwAzGP2klFrMdSC6v2nP2rD3DdaH6QR5QD62gn/sTj7JdnDyZBTLLH3gVjSxTs5ajOJwNZSTGCIpKf+SSYZptTiN/YqaliyP8tLpsNE8NcCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jX/2d7042JE7o9rBdBaeSbtXQKNrtw5sYZvzihCoRa0=; b=lfCgUS6yjcizmbZ2ThGT5p7X0MPS8AYOOfh+2KsN9fo9ZQa642Xn08hs597IVzOD3KArStvC70KPCAx4xhrWut5g3/a5M/QAFh+3l4aLwVFSK1qVqYCadxWFhmqMVbdzXjUShe2PRU4/mPKZT7I9sHQFmHevTVhQjoijeWYZXSr0VR11YNpx+P8VA9lFyk2Qi9BJut8mn5KAC9SSr22xZxSa49L/C7roO5ub/UqhsIIfsdAwu0ky0iWsQPuJmjltqfBO4YCeBLomxUctOV17GknT07FM+SSA4bn4gphA0EygmFttcp6fXU3iVh3wAIhxfBKqUeTgND+K7PQva94cBA== Original-Received: from VI1EUR05FT016.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::4c) by VI1EUR05HT206.eop-eur05.prod.protection.outlook.com (2a01:111:e400:fc12::281) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22; Mon, 21 Dec 2020 17:41:03 +0000 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com (2a01:111:e400:fc12::46) by VI1EUR05FT016.mail.protection.outlook.com (2a01:111:e400:fc12::73) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.22 via Frontend Transport; Mon, 21 Dec 2020 17:41:03 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:2FAC55B70EC87163A5A5AB00ACA50EEF47F2D2D20266C27EC0C67E35F43FCE5D; UpperCasedChecksum:A67719F4CAAF05D5E20DEFE5396E48CDE93A5C7683778CF2E28FE71D5A9C8AB0; SizeAsReceived:7861; Count:46 Original-Received: from AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993]) by AM0PR06MB6577.eurprd06.prod.outlook.com ([fe80::9487:8c7d:da00:4993%8]) with mapi id 15.20.3676.033; Mon, 21 Dec 2020 17:41:03 +0000 In-Reply-To: <83blenrs38.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 21 Dec 2020 19:23:23 +0200") X-TMN: [pmmVqNwfKzwUZxXe4DkhjVM4we8CBSIM] X-ClientProxiedBy: AM5PR0402CA0021.eurprd04.prod.outlook.com (2603:10a6:203:90::31) To AM0PR06MB6577.eurprd06.prod.outlook.com (2603:10a6:208:19a::23) X-Microsoft-Original-Message-ID: <87h7ofm501.fsf@live.com> X-MS-Exchange-MessageSentRepresentingType: 1 Original-Received: from pascal.homepc (90.230.29.56) by AM5PR0402CA0021.eurprd04.prod.outlook.com (2603:10a6:203:90::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3676.28 via Frontend Transport; Mon, 21 Dec 2020 17:41:03 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 46 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 66fb5b65-236b-4ec8-bfc4-08d8a5d796bc X-MS-TrafficTypeDiagnostic: VI1EUR05HT206: X-MS-Exchange-MinimumUrlDomainAge: github.com#4822 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0TK4deC2AHtmpHSkjeoapetkbTvylrOq9DhQiTtMooDpYhXVstS0NOh8+0LI6evIAV162WccmgzRoZW/vUHKFNUwQqhvcCTXgL76dgxabACsvPHGg5PbsPVjixrFyCsJv81LxgyUDJjsSuWAJ4/jPB47F+kcw/nrBSfyuOSudAhh7hw+Fa2mGoNZ5lLCsNH1z0P1NbXX9FZd3IZPIz7NXWeVRT6AnmsLTGwvvhj3DLOWc+2wlUfNBOaA24Y78pDkgFc3gloulYUdCRYnE+qEwrTw9VLme0Kio11Q0xRM9xI= X-MS-Exchange-AntiSpam-MessageData: E1k6bEVO8Q0EUhvMhckJZsWaq1EneS6nu3DpjXxMOkMiAsJmt9LmDRJnEAvU1UD/i4A/FkTj8mPLm9RyDX5bSWJYnPkYJl66Gq8qYzzReARmBZQUFyyg4DFpiRrZyIkdOj44Pqoy/L5ZknDZm28lXw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2020 17:41:03.7552 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-Network-Message-Id: 66fb5b65-236b-4ec8-bfc4-08d8a5d796bc X-MS-Exchange-CrossTenant-AuthSource: VI1EUR05FT016.eop-eur05.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR05HT206 Received-SPF: pass client-ip=40.92.89.66; envelope-from=arthur.miller@live.com; helo=EUR05-DB8-obe.outbound.protection.outlook.com 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, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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:261398 Archived-At: 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 https://tkf.github.io/emacs-request/ "Request.el is a HTTP request library with multiple backends. It supports url.el which is shipped with Emacs and curl command line program. User can use curl when s/he has it, as curl is more reliable than url.el. Library author can use request.el to avoid imposing external dependencies such as curl to users while giving richer experience for users who have curl." https://github.com/tkf/emacs-request Sorry for the github link; but it can be just cloned without running their js.