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

assert: prefer reference comparison over string comparison #41015

Commits on Nov 29, 2021

  1. assert: prefer reference comparison over string comparison

    Pointer comparison takes constant time and string comparison takes
    linear time unless there is some string interning going on, so this
    might be a little bit faster.
    
    Signed-off-by: Darshan Sen <darshan.sen@postman.com>
    RaisinTen committed Nov 29, 2021
    Copy the full SHA
    b5e1342 View commit details
    Browse the repository at this point in the history