Message248631
| Author |
methane |
| Recipients |
ezio.melotti, methane, vstinner |
| Date |
2015年08月15日.03:08:42 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1439608124.5.0.0773186444318.issue24870@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
surrogateescape is recommended way to mix binary data in string protocol.
But surrogateescape is too slow and it cause usability problem.
One actual problem is: https://github.com/PyMySQL/PyMySQL/issues/366
surrogateescape is slow because errorhandler is called with UnicodeError object.
bs.decode('utf-8', 'surrogateescape') may produce len(bs)/2 error objects internally when bs is random bytes.
surrogateescape is used with ASCII and UTF-8 encoding in ordinal.
Specialized implementation can make it faster.
I want to Python 3.4 and Python 3.5 solve this issue since it's critical problem
for some people. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2015年08月15日 03:08:44 | methane | set | recipients:
+ methane, vstinner, ezio.melotti |
| 2015年08月15日 03:08:44 | methane | set | messageid: <1439608124.5.0.0773186444318.issue24870@psf.upfronthosting.co.za> |
| 2015年08月15日 03:08:44 | methane | link | issue24870 messages |
| 2015年08月15日 03:08:42 | methane | create |
|