Surya Hebbar created IMPALA-13843:
-------------------------------------
Summary: Use strings directly in rapidjson without conversion to
char*
Key: IMPALA-13843
URL: https://issues.apache.org/jira/browse/IMPALA-13843
Project: IMPALA
Issue Type: New Feature
Reporter: Surya Hebbar
Assignee: Surya Hebbar
The RapidJSON library recalculates length of a StringRef each time when using
char*, until null character.
Within the codebase, many times we are converting from string->char* for
RapidJSON.
This impacts large JSON profiles where this is repeated multiple times.
This is redundant. Instead with RAPIDJSON_HAS_STDSTRING., we can use string
directly, which contains the size, instead of recalculating each time.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)