Faster `toString('hex')` implementation
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- javascript
- 领域
- performance
调研方向
从现有的 Buffer toString('hex') 实现开始,并将其与链接的 jsbench.me 基准测试进行比较。检查该 package 是否支持 IE 和 TextDecoder,并评估 Uint16Array 的内存权衡;当性能变更的兼容性决策已经解决并且 PR 已准备就绪时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
In a similar vein to #245, I have an implementation of toString('hex') that's between 2x and 4x faster than the existing one, depending on the browser/engine.
See: https://jsbench.me/evm3ejel2i/3
Possible drawbacks of this implementation:
- Requires
TextDecoder(does this package support IE currently?) - Likely uses more memory, since it allocates a
Uint16Arrayto hold intermediate data
Would you accept a PR to switch to this implementation?
- 主要语言
- JavaScript
- 星标
- 1.9k
- 派生
- 261
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
feross/buffer 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 25/100
-
Use `DataView`, remove dependency on `ieee754`可能重新可做 @dcousens 于 648 天前认领,目前没有进行中的 PR。 未关闭
-
难度 2/5 1-3 小时 新手友好度 48/100
-
难度 3/5 1-2 天 新手友好度 38/100
-
Why is the code above version 6.0 ES6? This leads to errors running on lower versions of browsers未关闭
难度 4/5 3-5 天 新手友好度 25/100
相似的 Issue
-
documentation v2
难度 2/5 1-3 小时 新手友好度 78/100
modelcontextprotocol/servers#5170 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
SwiftKickMobile/skai#84 ·
-
bug
难度 2/5 1-3 小时 新手友好度 72/100
Billionmail/BillionMail#389 ·
-
难度 1/5 1 小时以内 新手友好度 92/100
Uniswap/tokenlists-org#3331 ·
-
beginner-friendly category:finding-titles community enhancement first-timers-only good first issue hacktoberfest help wanted low hanging fruit micro-contribution type: task up-for-grabs
难度 1/5 1-3 小时 新手友好度 85/100
Berserk-hub150/skillhawk#227 · 1 条评论 ·
维护者通常 8 天内回复