-
Notifications
You must be signed in to change notification settings - Fork 3.6k
improved performance of column width calculation for spreadsheets wit… #1628
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
Conversation
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
* | ||
* @return bool | ||
*/ | ||
public function isMergeRangeValueCell2($mergeRange) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Idea for perhaps better name: isFirstInMergedRange
* | ||
* @var array | ||
*/ | ||
private static $_rangeBoundariesCache = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using underscore in variable name is almost never used in this project.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. We're trying to move away from underscore usage. So new usage should not be added again.
* | ||
* @return bool | ||
*/ | ||
public function isMergeRangeValueCell2($mergeRange) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All new methods must declare their typing
* | ||
* @var array | ||
*/ | ||
private static $_rangeBoundariesCache = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. We're trying to move away from underscore usage. So new usage should not be added again.
No update in over 2.5 years. Closing. |
improved performance of column width calculation for spreadsheets with many merged cells
This is:
Checklist:
Why this change is needed?
Creating Spreadsheets with many merged cells was very slow.
This was (to some degree) because of a many (unnecesserily) repeated calls to Coordinate::rangeBoundaries(), Cell::isInRange() and Cell::getMergeRange().