]> granicus.if.org Git - python/commit
Close #13126: "Simplify" FASTSEARCH() code to help the compiler to emit more
authorVictor Stinner <victor.stinner@gmail.com>
Sun, 7 Apr 2013 22:26:43 +0000 (00:26 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Sun, 7 Apr 2013 22:26:43 +0000 (00:26 +0200)
commit7efa3b8242771f5e63ffaab7bd184e1a5c12c429
tree2d0722f33950bdd49a67066509d0aeab52fc45d3
parent4b7b0f06b459aa2bad371f26576a9e0388795553
Close #13126: "Simplify" FASTSEARCH() code to help the compiler to emit more
efficient machine code. Patch written by Antoine Pitrou.

Without this change, str.find() was 10% slower than str.rfind() in the worst
case.
Objects/stringlib/fastsearch.h