Message189952
| Author |
pitrou |
| Recipients |
Ben.Darnell, Ken.Giusti, benjamin.peterson, cbay, giampaolo.rodola, janssen, jcea, pitrou, r.david.murray, vstinner |
| Date |
2013年05月25日.10:57:18 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1369479438.38.0.668022017361.issue8240@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
> As for partial writes, I'm not sure if it's backwards compatible to
> turn them on by default, but it might be nice if the option were
> exposed. Partial writes may have less benefit in Python than in C
> since we'd have to reallocate and copy a string instead of just moving
> a pointer.
You can slice a memoryview() to avoid a copy. But I'm not sure of the point of partial writes here: can't you just send slices that are small enough (e.g. 4KB each)? |
|