SDWebImage / SDWebImage/SDWebImageWebPCoder
Converting a UIImage to the WebP format is extremely slow
还没有人认领这个 Issue。
- 主要语言
- Objective-C
- 星标
- 277
- 派生
- 101
- PR 合并指标
- 30 天内没有已合并 PR
描述
Converting a UIImage to the WebP format is extremely slow. For a 2.5-megabyte photo with a compression ratio of 0.85, it takes approximately 13.5 seconds
let webpCoder = SDImageWebPCoder.shared
var options: [SDImageCoderOption: Any] = [:]
options[SDImageCoderOption.encodeCompressionQuality] = 0.85
if let webpData = webpCoder.encodedData(with: image, format: .webP, options: options) {
compressionImageData = webpData
}
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中显示的 encodedData(with:format:options:) 调用开始,对使用所述 2.5 MB 图像和 0.85 质量进行 UIImage 到 WebP 编码的过程进行性能分析。将观察到的 13.5 秒运行时间与基于 libwebp 的 coder 行为进行比较。完成标准是确定编码瓶颈,并记录或实现一个能实质性改善此情况的修复方案。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- objective-c
- 领域
- mobile-dev, performance
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 35/100