The Wayback Machine - https://web.archive.org/web/20201201012405/https://github.com/microsoft/cpprestsdk/pull/892/commits
Skip to content
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

Improve utf8_to_utf16 speed for common path #892

Merged
merged 3 commits into from Oct 26, 2018

Commits on Oct 7, 2018

  1. Improve utf8_to_utf16 speed for common path

    Conversion from UTF 8 to UTF 16 will consist mostly of single byte code points (e.g. parsing json bodies). This allows running single byte conversion in a tight loop that is only interrupted if multi byte handling becomes necessary.
    
    Measurements for a very long string showed ~30% speed improvement
    christian
    christian committed Oct 7, 2018

Commits on Oct 11, 2018

Commits on Oct 26, 2018

  1. Use UtilCharInternal_t as character type to avoid issues with platfor…

    …m dependent definition of char
    christian
    christian committed Oct 26, 2018
You can’t perform that action at this time.