question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I just started using ESLint in Vim (through Syntactic, as suggested in the Readme). It works great, but it’s a little slow, blocking the UI when opening or saving files, because Vim can’t run tasks in the background. So I made a few quick checks (on a new MacBook, 1.1 GHz Intel Core M w/ flash drive):

Overall execution time on a very simple file with an empty ES 6 class definition:

$ time node_modules/.bin/eslint test.js

real    0m0.787s
user    0m0.700s
sys     0m0.082s

Node v4.0.0 launch time:

$ time node -p 'console.log("");'

real    0m0.134s
user    0m0.110s
sys     0m0.021s

Adding console.time() and console.timeEnd() around bin/eslint.js require statements, produced timings between 362ms and 425ms.

This means that the actual execution time of ESLint isn’t bad at all, but especially loading all the modules cause it to feel slow in my use case.

Another Vim plugin I use is ternjs and it uses a very nice trick: They launch a server process in the background and a light weight client sends commands to the server. I was thinking that this approach could work for ESLint as well, causing all the heavy modules to be loaded only once. This could be realized as a separate project, or might be built into ESLint itself.

What do you think?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

12reactions
mantonicommented, Sep 18, 2015

Ok, I’ve made a little something: https://www.npmjs.com/package/eslint_d The speedup is quite remarkable and exceeds my expectations. Thanks for ESLint!

0reactions
scottwoodallcommented, Jan 30, 2016

Thank you for sharing @mantoni, it really makes a huge difference. Nice job!

Read more comments on GitHub >

github_iconTop Results From Across the Web

20 Command Line Tools to Monitor Linux Performance
20 Command Line Tools to Monitor Linux Performance · 1. Top – Linux Process Monitoring · 2. VmStat – Virtual Memory Statistics ·...
Read more >
Performance CLI tool - codeBeamer
1Performance CLI Tool. This page describes the Performance CLI tool used to measure and evaluate the performance between codebeamer and its database.
Read more >
Unix Command-Line Interface (CLI)
High Performance Computing ... Unix Command-Line Interface (CLI) ... When typing those commands in the command line (after the prompt similar to the...
Read more >
The 6 Best Command Line Tools to Monitor Linux ...
The guide covers the best command-line Linux performance monitoring tools. Learn how these CLI tools can help resolve system, network, CPU, ...
Read more >
The performance center CLI - IBM
The performance center CLI allows the retrieval of numerous statistical metrics that are not displayed in the performance center GUI. Two CLI commands...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found