Don't store file content in memory #83
Labels
Core: Breaking
This will require a large change to the project's internals; save this for major releases
Difficulty: Difficult
Something that will take a weekend to fix or involves a lot of internal changes
Feature: Enhancement
The feature already exists but this is a request for it to be improved
Milestone
Whenever the file is read in as a
FrontMatterDocument
, the file's contents are stored in memory as$this->bodyContent
. The more files that are parsed, the more that is being stored.I want to explore changing this behavior to reading in the body of the files only when the DevServer needs it; the FrontMatter will still be read in and stored but the body will be thrown away until it's needed again.
For a regular build, however, the Compiler should store things in memory for faster performance.
The text was updated successfully, but these errors were encountered: