Skip to content

Reading large File increases Execution time & Memory (E.g file with 500000 records) #629

@kumarkal

Description

@kumarkal

This is: a feature request

- [ ] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

  • To Read large files quickly

What is the current behavior?

  • Takes more time to Read

What are the steps to reproduce?

  • Try loading csv file of 500000 records and split it into smaller set of files of about 100000 records each using chunks which will be 5 files.
  • As the size of file keeps reducing, performance increases

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

<?php

require __DIR__ . '/vendor/autoload.php';

// Create new Spreadsheet object
$spreadsheet = new \PhpOffice\PhpSpreadsheet\Spreadsheet();

// add code that show the issue here...

Which versions of PhpSpreadsheet and PHP are affected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementreader/xlsxReader for MS OfficeOpenXML-format (xlsx) spreadsheet filesstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions