CodePoints.uncons performance optimization?
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- performance
調査の方向性
Start with Data.String.CodePoints.uncons in src/Data/String/CodePoints.purs and the related helper in src/Data/String/Unsafe.js, then compare the referenced Data/Enum.js implementation. Confirm that the intermediate charAt slice can be avoided by using charCodeAt directly, while preserving uncons behavior.
索引モデルが issue の本文から書いたものです。
説明
It seems to me that these lines in Data.String.CodePoints.uncons
are first slicing the first code unit into a Char string with the JavaScript charAt method
and then converting the Char string to a CodePoint by the boundedEnumChar instance fromEnum method which calls the Javascript charCodeAt method.
We could skip the intermediate string slice of the charAt method and call charCodeAt directly.
- 主要言語
- PureScript
- スター
- 57
- フォーク
- 76
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
purescript/purescript-strings のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
purescript/purescript-strings#176 · コメント 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
purescript/purescript-strings#171 · コメント 3 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
purescript/purescript-strings#170 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
purescript/purescript-strings#169 · コメント 7 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
purescript/purescript-strings#167 · コメント 4 件 ·
purescript/purescript-strings の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
JamesHWade/deputy#192 ·
-
type/automation type/performance
難易度 1/5 1時間未満 初心者へのやさしさ 60/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
-
ELM
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
E3SM-Project/E3SM#8770 ·