<html><head/><body><html><head></head><body><div class="gmail_quote">Steven D'Aprano <steve@pearwood.info> wrote:<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre style="white-space: pre-wrap; word-wrap:break-word; font-family: monospace; margin-top: 0px">On Wed, 10 Jul 2013 07:55:05 +0000, Mats Peterson wrote:<br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">A moderator who calls himself “animuson” on Stack Overflow doesn’t want<br />to face the truth. He has deleted all my postings regarding Python<br />regular expression matching being extremely slow compared to Perl.</blockquote><br />That's by design. We don't want to make the same mistake as Perl, where <br />every problem is solved by a regular expression:<br /><br /><a href="http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime-numbers">http://neilk.net/blog/2000/06/01/abigails-regex-to-test-for-prime-numbers</a>/<br /><br />so we deliberately make regexes as slow as possible so that programmers <br />will look for a better way to solve their problem. If you check the <br />source
code for the re engine, you'll find that for certain regexes, it <br />busy-waits for anything up to 30 seconds at a time, deliberately wasting <br />cycles.<br /><br />The same with Unicode. We hate French people, you see, and so in an <br />effort to drive everyone back to ASCII-only text, Python 3.3 introduces <br />some memory optimizations that ensures that Unicode strings work <br />correctly and are up to four times smaller than they used to be. You <br />should get together with jmfauth, who has discovered our dastardly plot <br />and keeps posting benchmarks showing how on carefully contrived micro-<br />benchmarks using a beta version of Python 3.3, non-ASCII string <br />operations can be marginally slower than in 3.2.<br /><br /><br /><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Additionally my account has been suspended for 7 days. Such a dickwad.</blockquote><br />I cannot imagine why he would
have done that.<br /><br /></pre></blockquote></div><br clear="all">:-) Thank you.<br>
<br>
Sent from a Galaxy far far away</body></html></body></html>