Skip to content
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

Replace findup by @choojs/findup #465

Merged
merged 1 commit into from
Apr 12, 2018
Merged

Replace findup by @choojs/findup #465

merged 1 commit into from
Apr 12, 2018

Conversation

goto-bus-stop
Copy link
Member

This is a 🐛 bug fix

@choojs/findup is a fork of findup that removes the colors dependency.
colors adds lots of properties to the String prototype, which was
causing big slowdowns in bankai. About 300ms was spent calling colors
getters that were never expected to be there (mostly by the CSS parser).

Checklist

  • tests pass

Context

profile screenie

Semver Changes

Patch

@choojs/findup is a fork of findup that removes the `colors` dependency.
`colors` adds lots of properties to the String prototype, which was
causing big slowdowns in bankai. About 300ms was spent calling `colors`
getters that were never expected to be there (mostly by the CSS parser).
@goto-bus-stop goto-bus-stop merged commit 7c6e078 into master Apr 12, 2018
@goto-bus-stop goto-bus-stop deleted the replace-findup branch April 13, 2018 14:54
goto-bus-stop added a commit to goto-bus-stop/glslify-deps that referenced this pull request May 30, 2018
@choojs/findup is a fork of findup that removes the `colors` dependency.
`colors` adds lots of properties to the String prototype, which can
cause problems in other modules that don't expect them to be there.

This was causing big slowdowns in [bankai](https://github.com/choojs/bankai).
About 300ms was spent calling `colors` getters that were never expected
to be there.

![profile screenie](https://i.imgur.com/jIHp4yJ.png)

Ref choojs/bankai#465
Ref stackcss/sheetify#153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants