From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Cl=c3=a9ment_Pit-Claudel?= 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 12:13:55 -0400 Message-ID: <2e968b98-2264-03e7-d0b2-5570c94b6fb7@gmail.com> References: <87r1jxd3d8.fsf@gnu.org> <8e549f23-db75-2ef1-4399-0fb52e5efa6f@gnu.org> <87zgykn5qc.fsf@gnus.org> <83sg4ckbfw.fsf@gnu.org> <87mtukn463.fsf@gnus.org> <83o8f0kaoj.fsf@gnu.org> <83mtukk9b3.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39242"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Mar 30 18:14:34 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 1lRH0k-000A6V-Dj for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 18:14:34 +0200 Original-Received: from localhost ([::1]:34620 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRH0j-0001kj-FJ for ged-emacs-devel@m.gmane-mx.org; Tue, 30 Mar 2021 12:14:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49174) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRH0D-0001K3-EC for emacs-devel@gnu.org; Tue, 30 Mar 2021 12:14:01 -0400 Original-Received: from mail-qt1-x82a.google.com ([2607:f8b0:4864:20::82a]:41713) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRH0A-0003o2-4Q for emacs-devel@gnu.org; Tue, 30 Mar 2021 12:14:01 -0400 Original-Received: by mail-qt1-x82a.google.com with SMTP id x9so12257896qto.8 for ; Tue, 30 Mar 2021 09:13:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=CvR/ZHwFKMewa+BWEPOgbiH6OYjYj2FfOmqUoQbZu2I=; b=oY9RA5gl0OzPYuipCxF1YSHlxnUYoPDzlBC7ZDMpir/mKBD+NeoDPiVojs5jxH5Kki 1DA8q+9TrWHOCeD25TMqJX0WgyBZteJBy9cdxLTU5yT5KGdDquer+pGuKc3y5vPeEgvt iDnP352TMZfGhe37IPV+oo49ob0PO3ZvDti0EoioSf0h46c/sQGTb66KsuEFfuU2U6SH 1fAdXx3hZESDN+4E5iyeYppfnfiJdGe5W5wao4LpYOJEm+S6tpDv56QrWnADq6UAeB/p 3kcISR1xb0xEVQzwAStYiLxC2CpnGwnslkwTmmbwXNT/X+zfg3REuCstxpZmOn5Sr32c wbhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=CvR/ZHwFKMewa+BWEPOgbiH6OYjYj2FfOmqUoQbZu2I=; b=nWbLbHZp/EDBWCMB9PbnEwbE5gJ3LQaNi2rZxzYkRaEX0Ur729fZwm1KANfvKG2U4u 16Z4J1QrarDJC/vqrffpf3K53/GMKStNso7ekGbkCazEnc3ba9RlRe/DKb14Bjfrr20Y qgO8SuSiqOyPlYCptfACGZg2yesUde82/ad37ZPJIZl1Ul6qDkIT//zc5M86EDNInL58 6KM+0wgdHjTUGrs49f/V7967zTTsf2pVkCB6PWmDeiinPNhHLWO5EoFsaJyfw5Ak37Av lXjRYqvdSTbW9U8wy3Fcfpl2y7YVuTQT9OXuxEJlRwQvgNlQ/31vYibNsMmI96TbZ5Go yPDg== X-Gm-Message-State: AOAM532/RrHvIcxjzs2FZmp+4hAZrcwlNmawewEA1khjywS3TOyPEjWU IdH0C7ZEaRIL7DP5KzksknGnKMoVQw4= X-Google-Smtp-Source: ABdhPJxR0dc57kzKAkWWh/Uois9ohWzJGqaUjcaq9lPl3yAXCheCAbr0E0YVrEzSc8frTbFAXp1Iuw== X-Received: by 2002:ac8:1302:: with SMTP id e2mr28623744qtj.151.1617120836620; Tue, 30 Mar 2021 09:13:56 -0700 (PDT) Original-Received: from [192.168.1.11] (c-24-61-240-80.hsd1.ma.comcast.net. [24.61.240.80]) by smtp.googlemail.com with ESMTPSA id 4sm15979302qkj.119.2021.03.30.09.13.55 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Mar 2021 09:13:56 -0700 (PDT) In-Reply-To: <83mtukk9b3.fsf@gnu.org> Content-Language: en-GB Received-SPF: pass client-ip=2607:f8b0:4864:20::82a; envelope-from=cpitclaudel@gmail.com; helo=mail-qt1-x82a.google.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, NICE_REPLY_A=-0.001, 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:267183 Archived-At: On 3/30/21 10:25 AM, Eli Zaretskii wrote: > I just tried > > (benchmark-run 1 (url-retrieve-synchronously > "https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz")) > > in Emacs, and compared that with download by wget. On my relatively > slow home connection I get almost the same times, down to less than > 2%. On my decently fast home connection, Emacs takes 4.5s-5s to download that file using the form you posted, and wget takes 1.4s-2s to download the same file: (benchmark-run 1 (url-retrieve-synchronously "https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz")) ⇒ (4.875848555 13 3.7572300619999623) (benchmark-run 1 (shell-command-to-string "wget https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz")) ⇒ (1.5106374 0 0.0) Clément.