Skip to content

FormulaCellCacheEntry: Optimize ChangeConsumingCells method#939

Merged
tonyqus merged 2 commits into
nissl-lab:masterfrom
EmilienDup:fix/FormulaCacheEntrySet-perf
May 22, 2023
Merged

FormulaCellCacheEntry: Optimize ChangeConsumingCells method#939
tonyqus merged 2 commits into
nissl-lab:masterfrom
EmilienDup:fix/FormulaCacheEntrySet-perf

Conversation

@EmilienDup
Copy link
Copy Markdown
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
Copy Markdown
Member

tonyqus commented May 22, 2023

LGTM

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