Coder Social home page Coder Social logo

Improve startup performance about fx HOT 3 CLOSED

antonmedv avatar antonmedv commented on August 26, 2024
Improve startup performance

from fx.

Comments (3)

antonmedv avatar antonmedv commented on August 26, 2024

Cool, but I got error:

Module parse failed: Unexpected character '#' (1:0)
You may need an appropriate loader to handle this file type.
> #!/usr/bin/env node
| 'use strict'
| const os = require('os')

Also I always kept in mind during development focus on startup time (only necessary packages loaded, no cli wrappers like meow, etc) and now startup time should be in 100ms range.

from fx.

antonmedv avatar antonmedv commented on August 26, 2024

Actually ncc doesn't provide any speed improvements. Got it compiled:

time echo '{"foo": 1, "bar": 2}' | node dist/index.js .
{
  "foo": 1,
  "bar": 2
}

real	0m0,135s
user	0m0,113s
sys	0m0,021s

Versus fx:

time echo '{"foo": 1, "bar": 2}' | fx .
{
  "foo": 1,
  "bar": 2
}

real	0m0,123s
user	0m0,096s
sys	0m0,026s

So I'm closing it as not needed.

from fx.

sompylasar avatar sompylasar commented on August 26, 2024

from fx.

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.