Skip to content
This repository was archived by the owner on Apr 20, 2022. It is now read-only.
This repository was archived by the owner on Apr 20, 2022. It is now read-only.

Possible memory leaks? #42

@devalexqt

Description

@devalexqt

In my project with around 100 pages (plus tons of twig imports, macro , etc...) I see the regrasion of RAM memory from 2G to 8G in couple of builds and then webpaack throw "out of memory" error.
I quick looked in to source code of this loader and have some questions, why we every time init Twig then function called? Why not setup Twig once and then use it in next call?

//setup twig here
const Twig= ....

module.exports = function loader(source) {
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    in progressLooking for good solution to fix current issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions