CodePoints.uncons performance optimization?
還沒有人認領這個 Issue。
評估
- 難度
- 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
環境準備
我們還沒有檢查這個專案的環境設定檔。先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 個 reaction ·
-
難度 3/5 1-2 天 新手友好度 45/100
purescript/purescript-strings#170 ·
-
難度 5/5 一週以上 新手友好度 25/100
purescript/purescript-strings#169 · 7 則留言 ·
-
難度 3/5 1-2 天 新手友好度 38/100
purescript/purescript-strings#167 · 4 則留言 ·
查看 purescript/purescript-strings 的全部 Issue
相似的 Issue
-
bug
難度 2/5 1-3 小時 新手友好度 74/100
維護者通常 1 天內回覆
-
optimization Topic: i18n
難度 2/5 1-3 小時 新手友好度 86/100
維護者通常 1 天內回覆
-
self-care self-care:docs-build-time-investigator
難度 2/5 半天 新手友好度 76/100
githubnext/gh-aw-cao#14191 ·
維護者通常 1 天內回覆
-
Update the one-click "GTM4WP" Delay JS exclusion so that it also works with a custom data layer name未關閉
難度 2/5 1-3 小時 新手友好度 85/100
維護者通常 1 天內回覆
-
framework/gatsby help wanted kind/bug
難度 2/5 1-3 小時 新手友好度 78/100
layer5io/layer5#8142 · 1 則留言 ·
維護者通常 1 天內回覆