FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix/8.0 by maribedran · Pull Request #381 · lincolnloop/python-qrcode · GitHub

Fix/8.0 - #381

Closed
maribedran wants to merge 11 commits into
mainfrom
fix/8.0
Closed

Fix/8.0#381
maribedran wants to merge 11 commits into
mainfrom
fix/8.0

Conversation

maribedran commented Oct 3, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

guusbertens and others added 9 commits March 31, 2023 18:34
This commit introduces optimizations to the apply_mask method in the QRColorMask class to improve performance. Changes include:

1. Replacing getpixel and putpixel with direct pixel manipulation using the load() method, which speeds up the process.
2. Implementing a caching mechanism to reuse color transformations for identical pixel colors, reducing redundant calculations.
3. Adding conditions to skip processing for background color pixels to reduce computational load.

These optimizations have significantly reduced the method's execution time. In some experiments, these changes have resulted in performance improvements of over ten times compared to the original method, especially for larger images.
maribedran requested a review from bartTC October 3, 2024 16:06
bartTC closed this Jul 22, 2025
bartTC deleted the fix/8.0 branch July 26, 2025 11:50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL