Giter Site home page Giter Site logo

new esy x command runs slow about esy HOT 6 CLOSED

esy avatar esy commented on June 29, 2024
new esy x command runs slow

from esy.

Comments (6)

jordwalke avatar jordwalke commented on June 29, 2024

I updated the esy.json to be buildsInSource: "_build" and it reduced the time to one second, but still quite slow.

from esy.

andreypopp avatar andreypopp commented on June 29, 2024

Yes, esy x perform build and install commands before performing the command.

Regarding build commands, I don't think we could do better than jbuilder there.

We probably can skip performing install commands in case we detect rebuild didn't happen. I'm not sure it will win much time for us though.

from esy.

andreypopp avatar andreypopp commented on June 29, 2024

As jbuilder has exec subcommand this is probably the baseline:

% time esy b jbuilder exec which refmt
/Users/andreypopp/Workspace/esy-ocaml/reason/_build/install/default/bin/refmt
esy b jbuilder exec which refmt  0.10s user 0.13s system 90% cpu 0.260 total
% time esy x which refmt
/Users/andreypopp/Workspace/esy-ocaml/reason/node_modules/.cache/_esy/store/i/opam__slash__reason-3.0.2-dfe84e28/bin/refmt
esy x which refmt  0.38s user 0.71s system 88% cpu 1.238 total

from esy.

andreypopp avatar andreypopp commented on June 29, 2024

Times for install:

% time esy b esy-installer > /dev/null
esy b esy-installer > /dev/null  0.14s user 0.48s system 89% cpu 0.693 total

from esy.

jordwalke avatar jordwalke commented on June 29, 2024

I was seeing one second.

from esy.

jordwalke avatar jordwalke commented on June 29, 2024

Should esy x skip the build commands? It would be kind of like esy cmd in that case. It runs a command in an environment resulting from whatever build has taken place.

from esy.

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.