You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@impala.apache.org by "Surya Hebbar (Jira)" <ji...@apache.org> on 2025/03/07 22:00:00 UTC
[jira] [Created] (IMPALA-13843) Use strings directly in rapidjson without conversion to char*
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)