Skip to content

WIP Experiment With Column Auto-fit Performance#4862

Draft
oleibman wants to merge 1 commit intoPHPOffice:masterfrom
oleibman:issue4860
Draft

WIP Experiment With Column Auto-fit Performance#4862
oleibman wants to merge 1 commit intoPHPOffice:masterfrom
oleibman:issue4860

Conversation

@oleibman
Copy link
Copy Markdown
Collaborator

See issue #4860. In that issue, column auto-fit seems to a bottleneck when saving a spreadsheet. This PR attempts to cache cell widths rather than calculating them for each cell. It doesn't break anything, but, for various reasons, it is impractical for me to see if it improves performance in a meaningful way. If testing can demonstrate an improvement, I will consider merging this.

This is:

  • a bugfix
  • a new feature
  • refactoring
  • additional unit tests
  • performance

Checklist:

  • Changes are covered by unit tests
    • Changes are covered by existing unit tests
    • New unit tests have been added
  • Code style is respected
  • Commit message explains why the change is made (see https://github.com/erlang/otp/wiki/Writing-good-commit-messages)
  • CHANGELOG.md contains a short summary of the change and a link to the pull request if applicable
  • Documentation is updated as necessary

Why this change is needed?

Provide an explanation of why this change is needed, with links to any Issues (if appropriate).
If this is a bugfix or a new feature, and there are no existing Issues, then please also create an issue that will make it easier to track progress with this PR.

See issue PHPOffice#4860. In that issue, column auto-fit seems to a bottleneck when saving a spreadsheet. This PR attempts to cache cell widths rather than calculating them for each cell. It doesn't break anything, but, for various reasons, it is impractical for me to see if it improves performance in a meaningful way. If testing can demonstrate an improvement, I will consider merging this.
@oleibman oleibman marked this pull request as draft April 26, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant