Staging
v0.8.1
v0.8.1
https://github.com/python/cpython
Revision 7c2a85b2d44851c2442ade579b760f86447bf848 authored by Tim Peters on 31 August 2004, 02:19:55 UTC, committed by Tim Peters on 31 August 2004, 02:19:55 UTC
ldexp. Both methods are exact, and return the same results. Turns out multiplication is a few (but just a few) percent faster on my box. They're both significantly faster than using struct with a Q format to convert bytes to a 64-bit long (struct.unpack() appears to lose due to the tuple creation/teardown overhead), and calling _hexlify is significantly faster than doing bytes.encode('hex'). So we appear to have hit a local minimum (wrt speed) here.
1 parent 3fa19d7
Tip revision: 7c2a85b2d44851c2442ade579b760f86447bf848 authored by Tim Peters on 31 August 2004, 02:19:55 UTC
HardwareRandom: Go back to multiplying by 2**-BPF instead of using
HardwareRandom: Go back to multiplying by 2**-BPF instead of using
Tip revision: 7c2a85b
File | Mode | Size |
---|---|---|
.cvsignore | -rw-r--r-- | 276 bytes |
BUILDno.txt | -rw-r--r-- | 3.6 KB |
Uninstal.wse | -rw-r--r-- | 9.5 KB |
_bsddb.vcproj | -rw-r--r-- | 7.4 KB |
_socket.vcproj | -rw-r--r-- | 7.1 KB |
_ssl.mak | -rw-r--r-- | 655 bytes |
_ssl.vcproj | -rw-r--r-- | 1.5 KB |
_testcapi.vcproj | -rw-r--r-- | 7.1 KB |
_tkinter.vcproj | -rw-r--r-- | 8.3 KB |
build_ssl.py | -rw-r--r-- | 5.7 KB |
bz2.vcproj | -rw-r--r-- | 7.4 KB |
field3.py | -rw-r--r-- | 966 bytes |
installer.bmp | -rw-r--r-- | 49.1 KB |
make_versioninfo.vcproj | -rw-r--r-- | 4.9 KB |
pcbuild.sln | -rw-r--r-- | 12.3 KB |
pyexpat.vcproj | -rw-r--r-- | 10.6 KB |
python.iss | -rw-r--r-- | 18.4 KB |
python.vcproj | -rw-r--r-- | 7.5 KB |
python20.wse | -rw-r--r-- | 78.0 KB |
pythoncore.vcproj | -rw-r--r-- | 99.8 KB |
pythonw.vcproj | -rw-r--r-- | 7.5 KB |
readme.txt | -rw-r--r-- | 12.2 KB |
rmpyc.py | -rw-r--r-- | 597 bytes |
rt.bat | -rwxr-xr-x | 1.5 KB |
select.vcproj | -rw-r--r-- | 7.2 KB |
unicodedata.vcproj | -rw-r--r-- | 7.2 KB |
w9xpopen.vcproj | -rw-r--r-- | 4.1 KB |
winsound.vcproj | -rw-r--r-- | 7.2 KB |
zlib.vcproj | -rw-r--r-- | 6.9 KB |
Computing file changes ...