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

Ignore data validation and conditional format flags #5

Conversation

igitur
Copy link

@igitur igitur commented Nov 8, 2018

Ignore data validation and conditional format flags to improve performance of range insertion.
DV and CF are handled elsewhere.

This fixes the long running CFShiftedTruncateRange and DataValidationShiftedTruncateRange tests.

…mance of range insertion. DV and CF are handled elsewhere.
@igitur igitur force-pushed the pr1029-pankraty-1026_CellsUsedFix branch from 047626a to 79bd47b Compare November 8, 2018 09:57
@igitur
Copy link
Author

igitur commented Nov 8, 2018

If you agree, rebase, not merge please.

@Pankraty
Copy link
Owner

Pankraty commented Nov 8, 2018

This looks fine but I thought about improving FirstCellUsed and LastCellUsed too. Now they get all used cells and then calculate minimum (or maximum) row and column. Instead, they should get all used cells excluding ConditionalFormats and DataValidation, and then, if these flags are specified, check first (or last) cells of all ranges among CFs and DVs.

This should fix the issue with the slow test too.

@igitur
Copy link
Author

igitur commented Nov 8, 2018

Yes, I looked into that too, but that's going to be a much larger refactoring.

@Pankraty Pankraty closed this Nov 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants