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

Build time very slow (benchmark results) #3048

Closed
lumos94 opened this issue Sep 13, 2023 Discussed in #3046 · 2 comments
Closed

Build time very slow (benchmark results) #3048

lumos94 opened this issue Sep 13, 2023 Discussed in #3046 · 2 comments
Labels
education feature: 🏇 performance needs-test-case Please submit a reproducible test case showcasing the issue!

Comments

@lumos94
Copy link

lumos94 commented Sep 13, 2023

Discussed in #3046

Originally posted by lumos94 September 12, 2023
Hello all,

I'm working on a project (developed by others) which basically retrieves data from a CMS and apply them to the frontend. During the frontend development process the local build time, upon save, is very slow (20 seconds slow). Even if that is a very minor change like adding a class to an element. I added the ---incremental flag on the dev build but this doesn't seem to make a big difference.

On the console I am getting the below warnings but I did not find anything related to them on the research so I can fix them.

[11ty] File changed: src/pages/main/documents.njk
[11ty] Writing _site/main/documents/index.html from ./src/pages/main/documents.njk
[11ty] Benchmark   2275ms  12%   796× (Configuration) "image" Nunjucks Async Shortcode
[11ty] Benchmark   1755ms   9%    37× (Configuration) "jsmin" Nunjucks Async Filter
[11ty] Wrote 1 file (skipped 37) in 19.21 seconds (v2.0.1)

Images are hosted in the CMS and they are cached (11ty default behavior).
Any clues on how to speed things up?

"@11ty/eleventy": "^2.0.0",
"@11ty/eleventy-img": "^3.0.0",
```</div>
@zachleat
Copy link
Member

zachleat commented Nov 7, 2023

I’d start here: https://www.11ty.dev/docs/debug-performance/

This can give you further insight into what’s happening in your build.

@zachleat
Copy link
Member

This is an automated message to let you know that a helpful response was posted to your issue and for the health of the repository issue tracker the issue will be closed. This is to help alleviate issues hanging open waiting for a response from the original poster.

If the response works to solve your problem—great! But if you’re still having problems, do not let the issue’s closing deter you if you have additional questions! Post another comment and we will reopen the issue. Thanks!

@zachleat zachleat added the needs-test-case Please submit a reproducible test case showcasing the issue! label Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
education feature: 🏇 performance needs-test-case Please submit a reproducible test case showcasing the issue!
Projects
None yet
Development

No branches or pull requests

2 participants