Staging
v0.5.1
v0.5.1
swh:1:snp:635f4099902912592851108bcac178ff574f7c5f
Revision f8cc64017ca0f33b1e21b1c9c9f5f30ebdc4da31 authored by Gregory P. Smith on 02 May 2008, 07:26:52 UTC, committed by Gregory P. Smith on 02 May 2008, 07:26:52 UTC
problems is in the bug report (one old, one recently introduced trying to fix the old one). In short: buffer data during socket._fileobject.read() and readlines() within a cStringIO object instead of a [] of str()s returned from the recv() call. This prevents excessive memory use due to the size parameter being passed to recv() being grossly larger than the actual size of the data returned *and* prevents excessive cpu usage due to looping in python calling recv() with a very tiny size value if min() is used as the previous memory-use bug "fix" did. It also documents what the socket._fileobject._rbufsize member is actually used for. This is a candidate for back porting to 2.5.
1 parent b457dda
Tip revision: 550e4673be538d98b6ddf5550b3922539cf5c4b2 authored by Victor Stinner on 08 December 2020, 23:32:54 UTC
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
bpo-32381: Add _PyRun_SimpleFileObject() (GH-23709)
Tip revision: 550e467
File | Mode | Size |
---|---|---|
Demo | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
RISCOS | ||
Tools | ||
.bzrignore | -rw-r--r-- | 570 bytes |
.hgtags | -rw-r--r-- | 3.4 KB |
LICENSE | -rw-r--r-- | 13.4 KB |
Makefile.pre.in | -rw-r--r-- | 37.6 KB |
README | -rw-r--r-- | 55.1 KB |
configure | -rwxr-xr-x | 645.2 KB |
configure.in | -rw-r--r-- | 99.4 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 28.6 KB |
setup.py | -rw-r--r-- | 74.1 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...