mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 23:46:13 -05:00
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?'.
This commit is contained in:
parent
52b4524f4e
commit
5837b3e41f
1 changed files with 2 additions and 2 deletions
|
@ -55,8 +55,8 @@ (define (interpret-newline-escape str)
|
|||
(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))
|
||||
|
|
Loading…
Reference in a new issue