Description
ReadAll is used only in a few places, but most dominantly it is used to slurp up all the .xlsx we are opening.
It may be only a few MiBs, but mmap is an easy solution for this.
Steps to reproduce the issue
- open a big .xlsx
- Check used memory and GC churn
Describe the results you received
At least the size of .xlsx is used, then later may be released.
Describe the results you expected
Not a lot of memory is used, GC is in peace
Go version
1.24.1
Excelize version or commit ID
2.9.0
Environment
Validations
Description
ReadAll is used only in a few places, but most dominantly it is used to slurp up all the .xlsx we are opening.
It may be only a few MiBs, but mmap is an easy solution for this.
Steps to reproduce the issue
Describe the results you received
At least the size of .xlsx is used, then later may be released.
Describe the results you expected
Not a lot of memory is used, GC is in peace
Go version
1.24.1
Excelize version or commit ID
2.9.0
Environment
Validations