l...@gnu.org (Ludovic Courtès) skribis:
> Here I get a throughput of ~60 KiB/s, vs. ~400 KiB/s for wget and curl.
There’s one little detail I hadn’t even bothered checking:
;; Enlarge the receive buffer.
(setsockopt s SOL_SOCKET SO_RCVBUF (* 12 1024))
Its effect was to *shr
Mark H Weaver skribis:
> l...@gnu.org (Ludovic Courtès) writes:
>
>> I just noticed that our HTTP client is very slow. Consider this:
>>
>> (use-modules (web client)
>> (rnrs io ports)
>> (rnrs bytevectors)
>> (srfi srfi-11)
>> (ice-9 format))
Hi Ludovic,
l...@gnu.org (Ludovic Courtès) writes:
> I just noticed that our HTTP client is very slow. Consider this:
>
> (use-modules (web client)
> (rnrs io ports)
> (rnrs bytevectors)
> (srfi srfi-11)
> (ice-9 format))
>
> (define %uri
> "
I just noticed that our HTTP client is very slow. Consider this:
--8<---cut here---start->8---
(use-modules (web client)
(rnrs io ports)
(rnrs bytevectors)
(srfi srfi-11)
(ice-9 format))
(define %uri
"http: