Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lazy evaluation #11

Closed
Andrew-Morozko opened this issue Dec 22, 2023 · 0 comments · Fixed by #14
Closed

Lazy evaluation #11

Andrew-Morozko opened this issue Dec 22, 2023 · 0 comments · Fixed by #14
Labels
enhancement New feature or request
Milestone

Comments

@Andrew-Morozko
Copy link
Contributor

Since we're moving to dynamic schemas all of the parsing is done in our code (right now gohcl decodes the whole struct and its children, whether we need it or not).

This means that we do not need to parse the bodies of the blocks or resolve refs if we don't have to. As far as I understood, the primary goal of this tool is to render a specific document. What if we do it like this:

  1. Parse top-level block headers
  2. Find the requested document and begin parsing its body
  3. Execute plugins, resolve refs, and evaluate blocks when they are needed by the document body
This was referenced Dec 22, 2023
@traut traut added this to the v0.1 milestone Dec 30, 2023
@traut traut added the enhancement New feature or request label Dec 30, 2023
@Andrew-Morozko Andrew-Morozko linked a pull request Jan 24, 2024 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants