Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于第一次生成耗时问题 #70

Open
MuRanJiangXia opened this issue Aug 16, 2019 · 1 comment
Open

关于第一次生成耗时问题 #70

MuRanJiangXia opened this issue Aug 16, 2019 · 1 comment

Comments

@MuRanJiangXia
Copy link

MuRanJiangXia commented Aug 16, 2019

//  使用
if let image = EFQRCode.generate(content: "280580947644881355") {
    let qrImage = UIImage(cgImage: image)
    imageView.image = qrImage
}

第一次 用时 1.9432099166660919
第二次用时 0.02680799999507144

请问有什么解决方法么?

@EyreFree
Copy link
Member

@MuRanJiangXia

  1. 第二次耗时更短可能是因为某些生成步骤添加了缓存;
  2. 我们会尽可能地持续进行性能优化工作。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants