-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance: plugin adds 150-200ms to ESLint startup time because of ramda #213
Comments
What makes you think this is caused by ramda? On my machine it takes ~170ms for requiring |
I’ve made some optimizations in #214. I think it is not related to the CPU speed, but rather to I/O speed. The ramda entrypoint file does ~250 |
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ESLint is frequently used in pre-commit hooks. Just adding
eslint-mocha-plugin
makes linting and commiting noticeably slower even when there is nothing to lint.Steps to reproduce
npm i eslint-mocha-plugin
On MacBook Pro with 2,7 GHz Intel Core i5 it gives me 150-200 ms. In other words, just adding this plugin slows startup of ESLint by 150-200ms.
The problem is in
require('ramda')
- loading ramda module requires that much time. It's OK for long-running applications, but for command-line utilities it is inappropriately slow.Is it possible to speedup startup time of plugin by rewriting the code without ramda?
The text was updated successfully, but these errors were encountered: