[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/02: packages: Adjust 'generate-package-cache' for Guile 3.0.9.
From: |
Simon Tournier |
Subject: |
01/02: packages: Adjust 'generate-package-cache' for Guile 3.0.9. |
Date: |
Thu, 26 Jan 2023 12:59:51 +0100 |
Hi,
Commit ba1b61a72d56600e7c6f9c490129e95ab9ba0c9e reads:
--8<---------------cut here---------------start------------->8---
packages: Adjust 'generate-package-cache' for Guile 3.0.9.
* gnu/packages.scm (generate-package-cache): Adjust for Guile 3.0.9.
[...]
@@ -442,10 +443,15 @@ (define exp
(lambda (port)
;; Store the cache as a '.go' file. This makes loading fast and reduces
;; heap usage since some of the static data is directly mmapped.
- (put-bytevector port
- (compile `'(,@exp)
- #:to 'bytecode
- #:opts '(#:to-file? #t)))))
+ (match (compile `'(,@exp)
+ #:to 'bytecode
+ #:opts '(#:to-file? #t))
+ ((? bytevector? bv)
+ (put-bytevector port bv))
+ (proc
+ ;; In Guile 3.0.9, the linker can return a procedure instead of a
+ ;; bytevector. Adjust to that.
+ (proc port)))))
cache-file)
--8<---------------cut here---------------end--------------->8---
Cool!
What are the performances about this change? Does it improve the
generation of the cache? Faster or slower?
Or the resulting cache, is it larger or smaller?
Cheers,
simon
- 01/02: packages: Adjust 'generate-package-cache' for Guile 3.0.9.,
Simon Tournier <=