summaryrefslogtreecommitdiff
path: root/module/srfi
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-02-06 17:44:51 +0100
committerLudovic Courtès <ludo@gnu.org>2022-02-06 22:59:41 +0100
commitde1ac718503c6864b52813a89257256deae3d768 (patch)
tree88b69f6007177ff1be214034bb5a30bcec7e4932 /module/srfi
parentd656176f068a93b15cd093fafa193755d169de31 (diff)
downloadguile-wip-tree-il-sourcev.tar.gz
psyntax: Pass source vectors to tree-il constructors.wip-tree-il-sourcev
Avoiding systematic conversion from source vectors to property alists saves 20% on the final heap size of a process doing: (compile-file FILE #:optimization-level 1) where FILE is large. * module/language/tree-il.scm (tree-il-src/ensure-alist): New procedure with setter. Export as 'tree-il-src'. * module/ice-9/psyntax.scm (build-void, build-call) (build-conditional, build-lexical-reference, build-lexical-assignment) (build-global-reference, build-global-assignment) (build-global-definition, build-simple-lambda, build-case-lambda) (build-lambda-case, build-primcall, build-primref) (build-data, build-sequence, build-let, build-named-let) (build-letrec, expand-body): Remove (sourcev->alist src) calls. * module/ice-9/psyntax-pp.scm: Regenerate. * module/language/tree-il/analyze.scm (shadowed-toplevel-analysis): Use 'tree-il-src' instead of accessing the 'src' slot directly. * module/system/vm/assembler.scm (link-debug): Adjust so PC can be followed by a vector or an alist.
Diffstat (limited to 'module/srfi')
0 files changed, 0 insertions, 0 deletions