Improve Memory Usage · Issue #1269 · Intervention/image · GitHub
Skip to content

Improve Memory Usage #1269

Open
Open

Description

@olivervogel

Describe the feature you'd like
General optimization of RAM consumption.

Activity

  1. olivervogel commented on Jan 28, 2024

    @olivervogel
    MemberAuthor

    ✅ Optimized in 3.3.2

    Optimized Image Decoding - Previously file paths were read via file_get_contents() and are passed to the BinaryImageDecoder::class instead of handling the paths directly, which is more efficient

    Old implementations

    // decode image
    $image = parent::decode(file_get_contents($input));

    This is now handled without reading to whole image via file_get_contents()

    See d27fdd7, 03a5928

  2. olivervogel commented on Jan 28, 2024

    @olivervogel
    MemberAuthor

    ✅ Optimized in 3.3.2

    AbstractDecoder::extractExifData() now uses either file paths or binary data as direct input for exif_read_data(), instead of always creating a file pointer and reading from it as before.

    Old Implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions