Skip to content

optimize performance#1

Merged
mzule merged 3 commits intomzule:masterfrom
ratdream:router
Apr 12, 2016
Merged

optimize performance#1
mzule merged 3 commits intomzule:masterfrom
ratdream:router

Conversation

@ratdream
Copy link
Contributor

优化了一下生成Path链表的性能,避免多次split("/")

parse(linkComponent, s.substring(components[0].length() + 1));
Path curPath = scheme;
for(int i = 0; i < components.length; i++) {
if (i < components.length) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个判断和外面的for的条件一样耶。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

第一次提交pull request,看来是激动的。

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, 下次我一起发版本。

@mzule mzule merged commit 1ab389d into mzule:master Apr 12, 2016
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