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

FormulaCellCacheEntry: Optimize ChangeConsumingCells method #939

Merged
merged 2 commits into from
May 22, 2023

Conversation

EmilienDup
Copy link
Contributor

Using a HashSet to reduce the time complexity of the ChangeConsumingCells method.

Similar to what is done in the original POI implementation:
https://github.com/apache/poi/blob/43b0529a67c813ae1ebd0812a7c8d87332704d71/poi/src/main/java/org/apache/poi/ss/formula/FormulaCellCacheEntry.java#L93

This change greatly improves the performance of formula value caching when the worksheet contains a lot of cells.

@tonyqus
Copy link
Member

tonyqus commented May 22, 2023

LGTM

@tonyqus tonyqus merged commit 41f5ba0 into nissl-lab:master May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants