]> granicus.if.org Git - python/commit
#11454: Reduce email module load time, improve surrogate check efficiency.
authorR David Murray <rdmurray@bitdance.com>
Wed, 26 Jun 2013 16:06:21 +0000 (12:06 -0400)
committerR David Murray <rdmurray@bitdance.com>
Wed, 26 Jun 2013 16:06:21 +0000 (12:06 -0400)
commitb83ee30fc1110d8e2d7ca0fb08b79506830a207a
treec4404d086770acfb58325b75582c4d943b253477
parentdd3a6a5533bed5f9d1250856e4aa9edd70ec9ef2
#11454: Reduce email module load time, improve surrogate check efficiency.

The new _has_surrogates code was suggested by Serhiy Storchaka.  See
the issue for timings, but it is far faster than any other alternative,
and also removes the load time that we previously incurred from compiling
the complex regex this replaces.
Lib/email/utils.py