[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/08: po: Micro-optimize 'read-po-file'.
From: |
guix-commits |
Subject: |
05/08: po: Micro-optimize 'read-po-file'. |
Date: |
Mon, 22 Jun 2020 18:04:31 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5837b3e41fe2e772f944fdae05b1f48084cc783e
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jun 22 23:33:20 2020 +0200
po: Micro-optimize 'read-po-file'.
* guix/build/po.scm (parse-tree->assoc): Use dot instead of ellipsis in
'match' clause to avoid repeated calls to 'list?'.
---
guix/build/po.scm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/guix/build/po.scm b/guix/build/po.scm
index 6ad7b9c..eb9690a 100644
--- a/guix/build/po.scm
+++ b/guix/build/po.scm
@@ -55,8 +55,8 @@
(define (parse-tree->assoc parse-tree)
"Converts a po PARSE-TREE to an association list."
(match parse-tree
- ('() '())
- ((entry parse-tree ...)
+ (() '())
+ ((entry . parse-tree)
(match entry
((? string? entry)
(parse-tree->assoc parse-tree))
- branch master updated (62115b7 -> 96a95aa), guix-commits, 2020/06/22
- 02/08: doc: cookbook: Mention "guix hash -rx" for Git checkouts., guix-commits, 2020/06/22
- 04/08: po: Avoid regexps when interpreting '\n' sequences., guix-commits, 2020/06/22
- 06/08: self: Move statements after definitions in translation derivation., guix-commits, 2020/06/22
- 01/08: doc: cookbook: Clarify 'git-fetch' conventions., guix-commits, 2020/06/22
- 03/08: self: Speed up Texinfo cross-reference translation., guix-commits, 2020/06/22
- 07/08: self: Parallelize translation of the manual., guix-commits, 2020/06/22
- 05/08: po: Micro-optimize 'read-po-file'.,
guix-commits <=
- 08/08: doc: cookbook: Tweak intro to the REPL., guix-commits, 2020/06/22