Increase UR memory efficiency
Opened this issue · 3 comments
Do some profiling on the urtypes library and the UR library from Foundation Devices to see how we can improve RAM usage
Did two things that reduced resources usage and increased speed a lot, without changing UR
-
Used binary images (1 bit per pixel) instead os "01" strings (8 bits per pixel) to store and handle QR codes. b56a33f (and some subsequent commits)
-
Inspecting both Krux and UR I figured out Krux would was calculating QR code sizes through iterations, starting with huge QR codes, and encoding them on each iteration. So I replaced the iterations by equations. de99bfe
Learned that UR not efficient on information density, and is terrible for small screens. But let's try to use it the best way possible.
Can we consider this done in release 24.03.0 ?
Yes, done in Release v24.03.0