-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor struct Converter and reduce template parameters (#7915)
Summary: Refactor struct Converter in Conversions.h to remove the code complexity from the template parameter TRUNCATE and LEGACY_CAST. Wrap them into a single template parameter TPolicy as well as any future additional parameter. struct Converter holds the core logic of the CAST expression between scalar/primitive types. Benchmarking shows ignorable impact on perf. Also refactor the case of ToKind being BOOLEAN, and move the logic into a single template specialization. The logic used to spread over two template specializations, for TRUNCATE true and false. Pull Request resolved: #7915 Reviewed By: Yuhta Differential Revision: D51946081 Pulled By: gggrace14 fbshipit-source-id: f69624d07d58ca1946c806414f76b8e35597a271
- Loading branch information
1 parent
5db9d84
commit 063f2b6
Showing
7 changed files
with
193 additions
and
122 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
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
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
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
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
Oops, something went wrong.