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

Performance: Use subclass for parsing EXIF data #3663

Closed
wants to merge 6 commits into from

Commits on Mar 29, 2019

  1. use subclass for parsing EXIF data

    The old method (using dict() and _fixup_dict) create clones from IFD_v1,
    but it read all items when iterating, losing all benefits from the lazyness
    of IFD.
    The new method use a custom subclass that try to prevent all iterations
    as much as possible, keeping all tags undecoded.
    
    The return value isn't a dict anymore, but a subclass of ImageFileDirectory_v1
    that doesn't support tov2(). All decoded tags are formatted as before.
    Glandos authored and radarhere committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    49fc09d View commit details
    Browse the repository at this point in the history
  2. py2 compatibility

    Glandos authored and radarhere committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    60c5614 View commit details
    Browse the repository at this point in the history
  3. remove conversion to tuple

    The _fixup does exactly the opposite
    Glandos authored and radarhere committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    475b417 View commit details
    Browse the repository at this point in the history
  4. Update src/PIL/JpegImagePlugin.py

    Co-Authored-By: Glandos <bugs-github@antipoul.fr>
    radarhere and Glandos committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    56dca01 View commit details
    Browse the repository at this point in the history
  5. Update src/PIL/JpegImagePlugin.py

    Co-Authored-By: Glandos <bugs-github@antipoul.fr>
    radarhere and Glandos committed Mar 29, 2019
    Configuration menu
    Copy the full SHA
    d48b98a View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2019

  1. Fix typo

    Co-Authored-By: Glandos <bugs-github@antipoul.fr>
    hugovk and Glandos committed Mar 30, 2019
    Configuration menu
    Copy the full SHA
    c20d301 View commit details
    Browse the repository at this point in the history