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

変換速度の改善 #3

Closed
samunohito opened this issue Jan 12, 2019 · 3 comments
Closed

変換速度の改善 #3

samunohito opened this issue Jan 12, 2019 · 3 comments

Comments

@samunohito
Copy link
Owner

samunohito commented Jan 12, 2019

VB.netのStrConvやKanaxsと比較すると、変換速度に難がある。
少なくとも同程度まで改善しないと同じ土俵にすら立てない。

samunohito added a commit that referenced this issue Jan 14, 2019
変換速度の改善のためLINQにより構築した巨大テーブルを廃止。
代わりにUnicodeの値(つまりchar型)を直で見ながら変換する方法に変更。

結局根本の仕組みを変えざるを得ず、原型を留めていない…単体テストコードだけ作っていたのが救いか。
@samunohito
Copy link
Owner Author

StrConvより早く変換出来るようになった。
ただし、Kanaxsに今一歩及ばない。

実用に耐えるレベルにはなった(と思う)ので、一旦終了。

samunohito added a commit that referenced this issue Jan 14, 2019
速度測定パターンを1つ追加。
@samunohito samunohito reopened this Jan 14, 2019
@samunohito
Copy link
Owner Author

ついでだしプルリク試してみるか。

samunohito added a commit that referenced this issue Jan 14, 2019
@samunohito
Copy link
Owner Author

間違えてmasterにやっちゃったが、結構簡単にできるものだ…

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

1 participant