diff options
author | Ludovic Courtès <ludo@gnu.org> | 2024-04-11 09:17:43 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2024-05-04 19:14:24 +0200 |
commit | c14b8636fbac9826115f4524d500536d54c15625 (patch) | |
tree | 7aa3865cac8d33732f7c98dce3bdecae4fd2e8a0 /THANKS | |
parent | b011ef4378aa40bb25db3022906eac378472cd83 (diff) |
records: Do not inline the constructor.
Struct initialization uses one instruction per field, which contributes
to code bloat in the case of package modules. With this change, the
‘.rtl-text’ section of ‘gnu/packages/tex.go’ goes from 7,334,508 B to
6,356,592 B (-13%; -7% on the whole file size), which alone is still
larger than the source file (4,2 MB).
* guix/records.scm (make-syntactic-constructor)[record-inheritance]: Use
CTOR instead of ‘make-struct/no-tail’.
Pass ABI-COOKIE as the first argument to CTOR.
(define-record-type*): Define CTOR-PROCEDURE and pass it to
‘make-syntactic-constructor’.
Change-Id: Ifd7b4e884e9fbf21c43fb4c3ad963126ef5cb476
Diffstat (limited to 'THANKS')
0 files changed, 0 insertions, 0 deletions