Project

General

Profile

Actions

Feature #56557

closed

Implement hashed temp folder structure for resized images and thumbnails

Added by Michiel Roos over 10 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2014-03-04
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
easy
Sprint Focus:
Remote Sprint

Description

Some filesystems get slow when placing hundreds or even thousands of files in a single directory.

\TYPO3\CMS\Core\Imaging\GraphicalFunctions::imageMagickConvert() and \TYPO3\CMS\Backend\View\ThumbnailView::main() are two locations that could implement a hashed folder structure for storing generated images. This could work just like the mediawiki $wgHashedUploadDirectory configuration option.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #54847: Many ProcessedFiles per Storage lead to performance issues.ClosedSteffen Ritter2014-01-08

Actions
Actions #1

Updated by Michiel Roos over 10 years ago

Here is a snippet from the MediaWiki source:

  /**
   * @param $name
   * @param $levels
   * @return string
   */
  static function getHashPathForLevel( $name, $levels ) {
    if ( $levels == 0 ) {
      return '';
    } else {
      $hash = md5( $name );
      $path = '';
      for ( $i = 1; $i <= $levels; $i++ ) {
        $path .= substr( $hash, 0, $i ) . '/';
      }
      return $path;
    }
  }
Actions #2

Updated by Mathias Schreiber almost 10 years ago

  • Category set to File Abstraction Layer (FAL)
  • Sprint Focus set to On Location Sprint
Actions #3

Updated by Ingo Schmitt almost 10 years ago

  • Status changed from New to In Progress
Actions #4

Updated by Gerrit Code Review almost 10 years ago

  • Status changed from In Progress to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36523

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36523

Actions #6

Updated by Gerrit Code Review over 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36523

Actions #7

Updated by Anja Leichsenring over 9 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint
Actions #8

Updated by Gerrit Code Review about 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/36523

Actions #9

Updated by Gerrit Code Review over 8 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/36523

Actions #10

Updated by Gerrit Code Review over 8 years ago

Patch set 6 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/36523

Actions #11

Updated by Gerrit Code Review over 8 years ago

Patch set 7 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/36523

Actions #12

Updated by Gerrit Code Review over 8 years ago

Patch set 8 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/36523

Actions #13

Updated by Gerrit Code Review over 8 years ago

Patch set 1 for branch TYPO3_7-6 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47854

Actions #14

Updated by Alina Fleser over 8 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #15

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF