Message237212
Hi Piotr,
There wasn't an obvious fix that didn't involve changing the buffer interface itself. There is presently ambiguity in the interface regarding the difference between a "read only" buffer and an "immutable" buffer, which is crucial for its use in this case.
Fixing the interface, followed by every buffer interface user, is a significantly more complicated task than simply optimizing for the most common case, as done here. FWIW I still think this work is worth doing, though I personally don't have time to approach it just now.
We could have (and possibly should) approach fixing e.g. mmap.mmap() hashability, possibly causing user code regressions, but even if such cases were fixed it still wouldn't be a enough to rely on for the optimization implemented here. |
|
Date |
User |
Action |
Args |
2015-03-04 21:04:29 | dw | set | recipients:
+ dw, pitrou, scoder, benjamin.peterson, stutzbach, skrah, python-dev, hynek, piotr.dobrogost, serhiy.storchaka, kmike |
2015-03-04 21:04:29 | dw | set | messageid: <1425503069.48.0.602815825879.issue22003@psf.upfronthosting.co.za> |
2015-03-04 21:04:29 | dw | link | issue22003 messages |
2015-03-04 21:04:29 | dw | create | |
|