Code Monkey home page Code Monkey logo

Comments (9)

ricardogobbosouza avatar ricardogobbosouza commented on July 26, 2024 2

@stylemistake
Performance was corrected in v2.5.4

from eslint-webpack-plugin.

jsg2021 avatar jsg2021 commented on July 26, 2024 1

Sorry, I was responding with the definition of classical "blocking"... and it is non-blocking in that sense... execution continues on the main thread while the linter runs in parallel. Webpack is waiting on all async parts to complete the report. Which is the blocking you mean.

from eslint-webpack-plugin.

vegerot avatar vegerot commented on July 26, 2024

I'm currently using eslint-loader through vue-cli-plugin-eslint, and I think I have a similar question. I suppose #30 is also relevant

When I set lintOnSave: true, my time it takes for npm run serve to complete quadruples! And the time it takes to recompile for a HMR is 5x longer :( . However, this is not the case for the TypeScript service. For TypeScript, after the devServer finishes compiling and begins serving the page, devServer begins the TypeScript type checking service. Meaning that the type checking does not slow down the server at all, since it is done asynchronously. I was looking into switching from eslint-loader to eslint-webpack-plugin, and one of the main upgrades I was looking for was the ability to lint my codebase in the same way the typechecking service does.

From the sound of this issue, it seems that this is not a feature. Is such a thing on the roadmap?

Right now in eslint-loader, the time it takes to recompile for HMR is unbearable.

from eslint-webpack-plugin.

jsg2021 avatar jsg2021 commented on July 26, 2024

It's currently not blocking. With or without threads turned on.

from eslint-webpack-plugin.

decademoon avatar decademoon commented on July 26, 2024

@jsg2021 Are you sure? For me, webpack dev server blocks updates and hot reloads until the linting completes after a watched file has changed. Ideally during development the linting should happen in the background without blocking the webpack build. IIRC there's a typescript loader that works like this.

from eslint-webpack-plugin.

l0gicgate avatar l0gicgate commented on July 26, 2024

I'm curious is there a reason why the eslint-loader did not experience this issue versus the plugin does? Are those changes related to Webpack?

from eslint-webpack-plugin.

jsg2021 avatar jsg2021 commented on July 26, 2024

@decademoon as of 2.5.0 it is fully blocking. Turn on threads and rollback to 2.4.x...

from eslint-webpack-plugin.

stylemistake avatar stylemistake commented on July 26, 2024

Can confirm, 2.4 is much faster with threads on. I'd suggest reverting whatever was introduced in 2.5.

For comparison on https://github.com/tgstation/tgstation/tree/master/tgui:

  • Running executables separately: webpack (20s) + eslint (15s) = 35s;
  • Using eslint-webpack-plugin 2.4 with threads: true: 23s;
  • Using eslint-webpack-plugin 2.4 with threads: false: 106s;
  • Using eslint-webpack-plugin 2.5 with threads: true: 33s;
  • Using eslint-webpack-plugin 2.5 with threads: false: 108s;

This was performed on Ryzen 2700X.

from eslint-webpack-plugin.

ricardogobbosouza avatar ricardogobbosouza commented on July 26, 2024

@elisherer
Use threads option

from eslint-webpack-plugin.

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.