Skip to content

perf: update util find #1205

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

Merged
merged 3 commits into from
Mar 29, 2018
Merged

perf: update util find #1205

merged 3 commits into from
Mar 29, 2018

Conversation

bichikim
Copy link
Contributor

The find in util doesn't need to loop all value in list for finding only one value

bichikim and others added 3 commits March 25, 2018 20:17
- Component Binding Helpers
- registerModule
 - do not need loop all list for finding only one value
@ktsn
Copy link
Member

ktsn commented Mar 29, 2018

Just my personal thoughts, I prefer the previous version because it's more declarative and shorter.

@bichikim
Copy link
Contributor Author

bichikim commented Mar 29, 2018

@ktsn yes you are right and l love code clean and simple however looping all value in list causes a bit performance problem in my opinion.
please refer to this link
and it looks not bad. don't you think?

@ktsn
Copy link
Member

ktsn commented Mar 29, 2018

I don't think this affects actual performance so much. But I don't have strong opinion for this function. I guess I'll merge this change.

@ktsn ktsn changed the title Update util find perf: update util find Mar 29, 2018
@ktsn ktsn merged commit e556943 into vuejs:dev Mar 29, 2018
@bichikim bichikim deleted the dev3 branch March 29, 2018 10:31
ktsn added a commit that referenced this pull request May 27, 2018
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.

3 participants