Skip to content

Conversation

@le0nik
Copy link
Contributor

@le0nik le0nik commented Jul 3, 2017

I've found a way of optimizing linkArray method that can avoid big performance hit(especially for gc). We really only need to replace elements in original array instead of creating new arrays with map. I think that non-purity is not an issue in this case.

@gajus gajus merged commit 44746ac into gajus:master Jul 4, 2017
@le0nik le0nik deleted the optimize-link-array branch July 4, 2017 09:06
@le0nik
Copy link
Contributor Author

le0nik commented Jul 4, 2017

Thank you for the quick merge! Could you please publish it to npm?

@gajus
Copy link
Owner

gajus commented Jul 4, 2017

Thank you for the quick merge! Could you please publish it to npm?

It is automatically published every time I merge a PR.

@le0nik
Copy link
Contributor Author

le0nik commented Jul 4, 2017

Hm. Weird. Looks like it didn't work this time. If you look here it still uses map in linkArray: https://unpkg.com/react-css-modules@4.5.0/dist/linkClass.js

Looks like only previous PR triggered auto-release which published version 4.5.0.

gajus added a commit that referenced this pull request Jul 4, 2017
@gajus
Copy link
Owner

gajus commented Jul 4, 2017

It probably did not like my "perf:" prefix. Made another commit to force the release.

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.

2 participants