-
Notifications
You must be signed in to change notification settings - Fork 274
snyk ms:20170412 performance optimization #91
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
Conversation
Delagen
commented
May 17, 2017
- dramatically performance optimization
- added test for Infinity and long strings performance
- standard style fix, fix missing devDependencies
…ng strings perfomance, standard style fix, fix devDeps
… performance testing
Looks good to me! But can you please remove |
What you don't like in standard? May be left only eslint with fixers!? |
Because we have XO on almost all of our repositories... 😊 |
replaced by eslint-config-xo which IMHO better than second linter. XO is simply eslint wrapper, so I think using base module is more preferred |
Any review? |
Will have a look soon! Currently pretty busy. |
Snyk notoriously reports on the ms package used by socket.io, which actually is no vulnerability, and the author rejected snyk's fix. It looks bad on the README, so removing snyk until they fix their attitude.
Hi!
|
@thevtm Just insert one test value |
@Delagen thanks! I haven't considered that case.
|
…more performant
@thevtm thanks for benchmarking, updated code with your regexp |
You guys are amazing, thanks, look forward to pulling the latest! |
* @return {String|Number} | ||
* @api public | ||
*/ | ||
var scales = new Map( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This module is meant to be run in a variety of JavaScript environments, including (possibly older) web browsers. I don't think we'll be able to use Map
here.
@TooTallNate if you about IE8, It's dead, even webpack removed support of it |
@Delagen Even IE10 doesn't support Map. IE11's support is pretty hit and miss (although it probably supports everything you need here): https://kangax.github.io/compat-table/es6/ |
@ForbesLindesay Modern development use a couple bunch of polyfills or transpilers when target IE, so it's not a problem at all. This PR is about 1 year old, so it can never merge. |
Interested in this, but PR has to be re-factored |