FGRibreau / FGRibreau/node-unidecode

Using String#codePointAt()?

オープン
#14 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
JavaScript
スター
151
フォーク
24
PR マージ指標
30日以内にマージされた PR はありません

説明

I noticed that the code converts utf8 to utf16 manually, however `String#codePointAt()` is already [standardized](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt) for quite a while.

I think switch to use the built in version should give unidecode a huge performance boost.
##

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36986931-using-string-codepointat?utm_campaign=plugin&utm_content=tracker%2F294213&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F294213&utm_medium=issues&utm_source=github).

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

UTF-8 を UTF-16 に手動で変換しているコードを特定し、その動作を標準化されたエントリーポイント String#codePointAt() と比較してください。実装を変更する前に、既存のテストまたはベンチマークのエントリーポイントを確認してください。音訳が引き続き正しく、パフォーマンスへの影響が測定されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
internationalization
issue の種類
リファクタリング
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
43/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。