-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Avoid unnecessary string copies #4201
Avoid unnecessary string copies #4201
Conversation
Hi @chriche-ms. This non-spec pull request has had no recent activity for the past 5 days . Please take the necessary actions (review, address feedback or commit if reviewed already) to move this along. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @shalinijoshi19; Thanks for reviewing this previously stale pull request. Resetting staleness. @chriche-ms FYI. |
@RebeccaAnne is added to the review. #Closed |
@paulcam206 is added to the review. #Closed |
…thub.com/chriche-ms/AdaptiveCards into chriche/uwp_performance_stringconversion
* Improve performance of utf8 <-> utf16 conversion code * Small tweaks to UWP string conversion functions * Remove unnecessary string conversions * Remove unnecessary string copies * Update various functions to return strings by reference Co-authored-by: Paul Campbell <paulcam@microsoft.com>
Related Issue
Fixes #4198
Description
Updates various C++ functions to accept and/or return strings by reference (const-ref and r-value) to avoid unnecessary string copies. Also makes minor tweaks to the UTF-8 <-> UTF-16 string conversion code. These changes aim to improve card parsing and rendering performance.
How Verified
Ran the existing unit tests and performed manual testing by parsing and rendering a number of adaptive cards used by the Cortana in Windows app.
Microsoft Reviewers: Open in CodeFlow