image_get_info calls cause slow page loading

Created on 7 June 2017, about 8 years ago
Updated 15 January 2025, 5 months ago

Ran into an issue today where many many calls to image_get_info() caused the page load to sky rocket. Traced this back to this function call which in turn calls the filesize() function.

Requesting this module implement functionality to pull this data from the s3fs_file table rather than request the info from the remote S3 bucket, if possible.

https://api.drupal.org/api/drupal/includes%21image.inc/function/image_ge...
http://php.net/filesize

✨ Feature request
Status

Closed: works as designed

Version

2.0

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada slydevil Halifax

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States cmlara

    Drupal 7 end-of-life triage:
    Drupal 7 reached end of life on January 5th.

    The 7.x branches of S3FS do not have any additional planned releases.

    The requests in this issue are well known and do not appear to be solvable inside S3FS. The solutions to this are external modules not assuming files are on high speed storage. Similar faults would occur with other nearline storage solutions.

Production build 0.71.5 2024