-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize DictionaryCompressionOptimizer conversion code
DictionaryCompressionOptimizer uses set for allWriters and directConversionCandidate. Both of them can be replaced with the list. Iterating all elements in list is much faster than a set. tryConvertToDirect removed dictionary columns from inside the method. Now the reponsbility is shifted to the caller. convertLowCompressionStreams uses an iterator and removes the iterator. Previously this required a copy as the removal while iterating produced concurrentModificationException.
- Loading branch information
Arunachalam Thirupathi
committed
Nov 10, 2021
1 parent
426fbdd
commit fe936d0
Showing
1 changed file
with
95 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters