Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 5... Línea 5...
5
namespace OpenSpout\Reader\XLSX\Manager\SharedStringsCaching;
5
namespace OpenSpout\Reader\XLSX\Manager\SharedStringsCaching;
Línea 6... Línea 6...
6
 
6
 
7
/**
7
/**
8
 * @internal
8
 * @internal
9
 */
9
 */
10
final class CachingStrategyFactory implements CachingStrategyFactoryInterface
10
final readonly class CachingStrategyFactory implements CachingStrategyFactoryInterface
11
{
11
{
12
    /**
12
    /**
13
     * The memory amount needed to store a string was obtained empirically from this data:.
13
     * The memory amount needed to store a string was obtained empirically from this data:.
14
     *
14
     *
Línea 48... Línea 48...
48
     * best when the indexes of the shared strings are sorted in the sheet data.
48
     * best when the indexes of the shared strings are sorted in the sheet data.
49
     * 10,000 was chosen because it creates small files that are fast to be loaded in memory.
49
     * 10,000 was chosen because it creates small files that are fast to be loaded in memory.
50
     */
50
     */
51
    public const MAX_NUM_STRINGS_PER_TEMP_FILE = 10000;
51
    public const MAX_NUM_STRINGS_PER_TEMP_FILE = 10000;
Línea 52... Línea 52...
52
 
52
 
Línea 53... Línea 53...
53
    private readonly MemoryLimit $memoryLimit;
53
    private MemoryLimit $memoryLimit;
54
 
54
 
55
    public function __construct(MemoryLimit $memoryLimit)
55
    public function __construct(MemoryLimit $memoryLimit)
56
    {
56
    {