GithubHelp home page GithubHelp logo

Performance issues on Windows about pancake HOT 4 OPEN

govau avatar govau commented on May 24, 2024
Performance issues on Windows

from pancake.

Comments (4)

pattyde avatar pattyde commented on May 24, 2024

@alex-page any chance this is related to #72? Or is it something specific to Windows?

from pancake.

alex-page avatar alex-page commented on May 24, 2024

I think this was before #72 however I can investigate it further.

from pancake.

alex-page avatar alex-page commented on May 24, 2024

This is being moved into QA, waiting for publishing of new versions of components ( with updated pancake ) to test.

from pancake.

alex-page avatar alex-page commented on May 24, 2024

@rooby I did a test just after moving back to node-sass. The test was done on a slower older windows computer and a 2015 macbook pro. I used the gnomon package to see how long tasks were taking.

This is definitely an issue, installing 25 components took 171.98s on a slower windows computer vs 50.41s on a faster macbook pro.

Main points to note:

  • node-sass is a pretty big install and slower internet connections without an already cached binary can slow it down ( 9 seconds to download the windows binary vs 0.07s seconds for a cached mac binary )
  • pancake is a pretty intensive script and can probably be optimised for windows devices, currently it takes around 3.7 seconds per component on windows vs 0.86s on mac
  • The install of the packages were also slower on my windows laptop taking 20.35 seconds versus 8.49s on the macbook pro

This ticket would mainly be looking into the second point around optimising the pancake post install script for windows devices.

Some things to note are that the main things that take time in the pancake script are the compilation of sass -> css and minification of javascript. These are dependencies of the project and can be slower depending on the hardware., operating system and node-sass binary used. This ticket would be more looking into ways to speed up the pancake postinstall process, maybe we could try running the css and js tasks in parallel instead of synchronously.

from pancake.

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.