Giter VIP home page Giter VIP logo

Comments (5)

 avatar commented on August 26, 2024

Hugo bin on its own can tear through 1,000 pps like butter when run on HDD. My take is the JS is the bottleneck as the code isn't compiled – it's interpreted.

from victor-hugo.

erquhart avatar erquhart commented on August 26, 2024

I've seen very large sites run locally and never anything like this. Can you provide more details so we can reproduce? Is your repo public?

from victor-hugo.

ecerecerez avatar ecerecerez commented on August 26, 2024

Sorry @erquhart it isn't public. We use Hugo's partials functionality no templates, and we copy js files instead of using webpack.

Here's the latest:

Built site for language en:
0 draft content
0 future content
0 expired content
1180 regular pages created
142 other pages created
5548 non-page files copied
0 paginator pages created
0 tags created
0 categories created
total in 3864 ms
 [08:57:52] Finished 'hugo' after 6.98 s
[08:57:52] Starting 'server'...
[09:00:18] Finished 'server' after 2.42 min
[BS] Access URLs:
 ----------------------------------------
       Local: http://localhost:3000
    External: http://192.168.103.241:3000
 ----------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.103.241:3001
 ----------------------------------------
[BS] Serving files from: ./dist

Would sharing the config file help?

from victor-hugo.

erquhart avatar erquhart commented on August 26, 2024

Considering the number of files you're watching, this might be par for the course. The hugo task I'm using isn't stock, so that takes longer, but the rest is pretty much the same - here's what I'm seeing with a large site, but with considerably less files than yours:

Built site for language en:
0 draft content
47 of 47 futures rendered
0 expired content
566 regular pages created
522 other pages created
0 non-page files copied
198 paginator pages created
69 speaker created
0 tags created
115 categories created
0 collections created
56 author created
total in 14600 ms
[15:51:14] Finished 'hugo' after 34 s
[15:51:14] Starting 'server'...
[15:51:40] Finished 'server' after 26 s
[Browsersync] Access URLs:
 ------------------------------------
       Local: http://localhost:3000
    External: http://192.168.0.9:3000
 ------------------------------------
          UI: http://localhost:3001
 UI External: http://192.168.0.9:3001
 ------------------------------------
[Browsersync] Serving files from: ./dist

Perhaps there are ways to optimize the pipeline, or just get rid of gulp and use webpack (not certain it would be faster, but maybe so).

from victor-hugo.

erquhart avatar erquhart commented on August 26, 2024

Closing this due to age, comment if you want to revive.

from victor-hugo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.