Jean-Paul Calderone <exar...@divmod.com> added the comment: > So is it reasonable / unavoidable that UCS4 builds should be 1200 times > slower at regex handling?
No, but it's probably reasonable / unavoidable that a more complex regex should be some number of times slower than a simpler regex. On Linux, the regex being constructed is more complex. On OS X, it's simpler. The reason for the difference is that the Linux build is UCS4, but that's only because the unicode character width is being used as part of the function that constructs the regular expression. If you take this variable out of that function, so that it returns the same string regardless of the width of a unicode character, then performance evens out. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8064> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com