Sanjeet Malhotra created PHOENIX-7486:
-----------------------------------------
Summary: Cleanup all instances of exception as control flow anti
pattern
Key: PHOENIX-7486
URL: https://issues.apache.org/jira/browse/PHOENIX-7486
Project: Phoenix
Issue Type: Improvement
Reporter: Sanjeet Malhotra
In Phoenix codebase at multiple places, throwing exception is used as a GOTO
but creating an exception object is an expensive operation. Recently, with
PHOENIX-7484 we saw that when trying to get table ref from client metadata
cache if we don't use TableNotFoundException in PMetadataImpl and instead use
return value of null then it gave us 30-40% perf gain when running upserts.
Thus, it will be good to cleanup all occurrences of exception as control flow
anti pattern to make code more performant.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)