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

Optimize string comparison by using memcmp #28338

Merged
merged 1 commit into from
Sep 11, 2015
Merged

Commits on Sep 10, 2015

  1. Optimize string comparison by using memcmp

    llvm seems to be having some trouble optimizing the iterator-based
    string comparsion method into some equivalent to memcmp. This
    explicitly calls out to the memcmp intrinisic in order to allow
    llvm to generate better code. In some manual benchmarking, this
    memcmp-based approach is 20 times faster than the iterator approach.
    erickt committed Sep 10, 2015
    Configuration menu
    Copy the full SHA
    fbd91a7 View commit details
    Browse the repository at this point in the history