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

Optimize ImageStat.Stat.extrema #7593

Merged
merged 5 commits into from Dec 6, 2023

Commits on Dec 1, 2023

  1. Optimize ImageStat.Stat._getextrema function

    The optimzed function improves the performance.  The original function
    always runs through the complete historgram of length 256 even if it
    is possible to exit the loop early (break).
    
    Running some tests I found performance improvements of factor >10
    depending on the image.
    
    Signed-off-by: Andreas Florath <andreas@florath.net>
    florath committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    1b8f9d3 View commit details
    Browse the repository at this point in the history
  2. Fixed spacing in _getextrema method

    Signed-off-by: Andreas Florath <andreas@florath.net>
    florath committed Dec 1, 2023
    Configuration menu
    Copy the full SHA
    7762dd3 View commit details
    Browse the repository at this point in the history

Commits on Dec 2, 2023

  1. Configuration menu
    Copy the full SHA
    96fe0a1 View commit details
    Browse the repository at this point in the history

Commits on Dec 4, 2023

  1. Update src/PIL/ImageStat.py

    Simplification of return statement
    
    Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
    florath and radarhere committed Dec 4, 2023
    Configuration menu
    Copy the full SHA
    ac47b75 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2023

  1. Configuration menu
    Copy the full SHA
    ed03954 View commit details
    Browse the repository at this point in the history