Skip to content

Load file xlsx is very slow #3917

@nguyenthao1988

Description

@nguyenthao1988

`<?php

require 'vendor/autoload.php';

use PhpOffice\PhpSpreadsheet\IOFactory;
$filename = 'data/danhsach.xlsx';
//$filename = 'data/nhanvien.xlsx';
$spreadsheet = IOFactory::load($filename);`

I use this code load file "danhsach.xlsx" with 16k record, file size excel: 7MB.
+> this code load finish taken time: 32s

how to optimize this, i load full column and row, not limit.

I used:
PHP: 8.2.4
PhpSpreadsheet: 2.0

Thanks bro,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions