utils: Disable memoization for 'location'.
This was getting 25% hits, which did not quite justify the overhead. * guix/utils.scm (location): Remove 'mlambda'.
This commit is contained in:
parent
96b2b0ddc9
commit
3059a35afe
|
@ -773,11 +773,10 @@ be determined."
|
||||||
(line location-line) ; 1-indexed line
|
(line location-line) ; 1-indexed line
|
||||||
(column location-column)) ; 0-indexed column
|
(column location-column)) ; 0-indexed column
|
||||||
|
|
||||||
(define location
|
(define (location file line column)
|
||||||
(mlambda (file line column)
|
"Return the <location> object for the given FILE, LINE, and COLUMN."
|
||||||
"Return the <location> object for the given FILE, LINE, and COLUMN."
|
(and line column file
|
||||||
(and line column file
|
(make-location file line column)))
|
||||||
(make-location file line column))))
|
|
||||||
|
|
||||||
(define (source-properties->location loc)
|
(define (source-properties->location loc)
|
||||||
"Return a location object based on the info in LOC, an alist as returned
|
"Return a location object based on the info in LOC, an alist as returned
|
||||||
|
|
Loading…
Reference in New Issue