[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: #1772: importing the same module over and over eats up more and more
From: |
Chicken Trac |
Subject: |
Re: #1772: importing the same module over and over eats up more and more memory |
Date: |
Thu, 22 Jul 2021 11:35:09 -0000 |
#1772: importing the same module over and over eats up more and more memory
--------------------------------+--------------------
Reporter: sjamaan | Owner: (none)
Type: defect | Status: new
Priority: major | Milestone: 5.3
Component: unknown | Version: 5.2.0
Resolution: | Keywords:
Estimated difficulty: hard |
--------------------------------+--------------------
Changes (by sjamaan):
* milestone: 5.4 => 5.3
Comment:
Ah, the optimization mentioned in the description was in `merge-se`, which
`##sys#import` does *not* use: it uses append, which is a bit of a naive
way of extending the current environment. It's fine for locally scoped
`let`s and such, which the compiler and interpreter do all over the place,
but it's not fine when adding large amounts of identifiers in one go to an
open-ended environment like `import` does.
The fix is to call `merge-se`; patch sent to chicken-hackers. Moving to
the 5.3 milestone unless anyone objects.
--
Ticket URL: <https://bugs.call-cc.org/ticket/1772#comment:1>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.