Files
guix-mirror/guix
Mathieu Othacehe f743f2046b publish: Defer narinfo string creation to the http-write.
The "narinfo-string" procedure is expensive in term of IO operations and can
take a while under IO pressure, such a GC collecting. Defer its call to a new
thread created in the http-write procedure.

Fixes: <https://issues.guix.gnu.org/48468>
Partially fixes: <https://issues.guix.gnu.org/49089>

* guix/scripts/publish.scm (render-narinfo): Defer the narinfo string creation
to the http-write procedure.
(compression->sexp, sexp->compression): New procedures.
("X-Nar-Compression"): Use them.
("X-Narinfo-Compressions"): New custom header.
(strip-headers): Add the x-nar-path header.
(http-write): Add narinfo on-the-fly creation support. It happens in a
separated thread to prevent blocking the main thread.
2021-10-05 18:55:55 +00:00
..
2019-12-15 00:34:05 +01:00
2021-08-22 21:36:29 +02:00
2020-07-05 03:15:08 +05:30
2021-01-04 23:54:16 +01:00
2020-12-09 22:25:17 +01:00
2020-04-17 23:36:47 +02:00
2021-01-04 23:54:16 +01:00
2021-09-21 15:15:52 +02:00
2021-04-12 18:42:22 +02:00
2020-12-19 23:25:01 +01:00
2021-08-12 12:34:13 +02:00
2021-09-13 22:42:25 +03:00
2021-05-11 12:49:53 +02:00