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

feat: 增加变调开关 #185

Merged
merged 1 commit into from
Mar 18, 2024
Merged

feat: 增加变调开关 #185

merged 1 commit into from
Mar 18, 2024

Conversation

zh-lx
Copy link
Owner

@zh-lx zh-lx commented Mar 18, 2024

PR 的功能

请详细描述问题,或者贴一个 issue 链接

你的预期是什么

请详细描述,你修改代码之后的样子

是否进行了详细的自测?

是/否

@zh-lx zh-lx merged commit 7f79f2f into main Mar 18, 2024
2 checks passed
item.result = item.originPinyin = 'yī';
} else if (item.origin === '不') {
item.result = item.originPinyin = 'bù';
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个会影响性能吗?

Copy link
Owner Author

Choose a reason for hiding this comment

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

关闭变调时会增加一遍 O(n) 的遍历,之前整体的性能大概在 10 * O(n) 左右,影响不大,只要时间复杂度整体是 O(n) 都可以接受

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