Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load file xlsx is very slow #3917

Open
nguyenthao1988 opened this issue Feb 22, 2024 · 3 comments
Open

Load file xlsx is very slow #3917

nguyenthao1988 opened this issue Feb 22, 2024 · 3 comments

Comments

@nguyenthao1988
Copy link

nguyenthao1988 commented Feb 22, 2024

`<?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,

@tvillafane
Copy link

I have an XLSX that is 1.4MB and my code just hangs when I use the same method, doesn't even finish.

@nguyenthao1988
Copy link
Author

@tvillafane please use https://github.com/aVadim483/fast-excel-reader is better faster

@henno
Copy link

henno commented Apr 18, 2024

Same problem.

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

No branches or pull requests

3 participants