Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json2code: optimize string handling using std::string_view
Replace seastar::sstring with std::string_view for enum string literals in generated C++ service code. Since these strings are only used for comparison with HTTP query parameters and don't require modification, std::string_view provides a more lightweight alternative without the overhead of string allocation and copying. This change improves both runtime performance and memory efficiency of the generated service code. Signed-off-by: Kefu Chai <[email protected]> Closes #2657
- Loading branch information