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

转换速度很慢 #16

Closed
wanming opened this issue Jun 25, 2014 · 3 comments
Closed

转换速度很慢 #16

wanming opened this issue Jun 25, 2014 · 3 comments

Comments

@wanming
Copy link

wanming commented Jun 25, 2014

nodejs下,转换四个汉字比如“新建文档”需要1秒左右,有提高的空间吗
code: wordsGroups = pinyin(hanzi, { heteronym: true, style: pinyin.STYLE_NORMAL })

@wanming wanming closed this as completed Jun 25, 2014
@wanming
Copy link
Author

wanming commented Jun 25, 2014

是我搞错了,怎么删issue啊。。

@hotoo
Copy link
Owner

hotoo commented Jun 25, 2014

  1. 命令行里执行的话,是会比较慢的,因为每次都需要加载拼音库。
  2. 如果代码里调用每次都很慢,请提供范例代码。
  3. 不需要删除 issue,关闭就好了 :)

@wanming
Copy link
Author

wanming commented Jun 30, 2014

嗯,是我搞错了,我应该在加载express的时候就把拼音库加载进来的。没问题啦,谢谢!

luzhen328 pushed a commit to luzhen328/pinyin.js that referenced this issue May 5, 2019
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

No branches or pull requests

2 participants