emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sv: Emacs HTTP libraries [was: Re: How to contribute new package to


From: Eli Zaretskii
Subject: Re: Sv: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?]
Date: Tue, 30 Mar 2021 19:21:43 +0300

> From: Clément Pit-Claudel <cpitclaudel@gmail.com>
> Date: Tue, 30 Mar 2021 12:13:55 -0400
> 
> >   (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)

But note that the actual Emacs download time was 4.876 - 3.757 = 1.319
sec, the rest was taken by GC.  What happens if you set
gc-cons-threshold to a very large value?

Also, nowadays we have a variable to tune how much stuff do we read in
one go (by default just 4K), so might as well test the effect of that
on download times.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]