Code Monkey home page Code Monkey logo

Comments (4)

Zokirjon-Ashiraliyev avatar Zokirjon-Ashiraliyev commented on July 19, 2024

I'm getting this error too

from custom-qr-generator.

alexzhirkevich avatar alexzhirkevich commented on July 19, 2024

Taking too much time to generate Bitmap. On average devices with 1024 size takes about 8 - 10 seconds. How can we reduce generation time?

Upgraded performance up to 40% in 1.2.4. (time reduced from 2500ms to 1500ms on Snapdragon 730 with logo and background image, 1024 size). Tested on Mi-9T, pretty average 2019 device. Can you please specify your device?

Also you can test your app in release build (if you didn't already done it). It reduces generation time by ~15%.

If you generate code only to show, you can create options with the size of your ImageView. Most of smartphones width is <= 1080p and tablets width is <= 1600p. So i think your ImageView size is smaller than 1024p and 1024p code size is redundant.

from custom-qr-generator.

zokirjonkodirov avatar zokirjonkodirov commented on July 19, 2024

Size - 1024
Redmi Note 9 Pro - 2800 ms
Redmi 5 - 30 000 ms
Samsung A10 - 8000ms
Samsung A40 - 1500ms

Size - 512
Redmi Note 9 Pro - 1000 ms
Redmi 5 - 15 000 ms
Samsung A10 - 4000ms

I'll try with release build and share results again.

from custom-qr-generator.

alexzhirkevich avatar alexzhirkevich commented on July 19, 2024

Completely fixed in 1.2.5

from custom-qr-generator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.