Top-rated recipes tagged "patch"http://code.activestate.com/recipes/tags/patch/top/2011-01-09T16:32:22-08:00ActiveState Code RecipesRsync Algorithm (Python)
2011-01-09T16:32:22-08:00Eric Pruitthttp://code.activestate.com/recipes/users/4170757/http://code.activestate.com/recipes/577518-rsync-algorithm/
<p style="color: grey">
Python
recipe 577518
by <a href="/recipes/users/4170757/">Eric Pruitt</a>
(<a href="/recipes/tags/algorithm/">algorithm</a>, <a href="/recipes/tags/delta/">delta</a>, <a href="/recipes/tags/diff/">diff</a>, <a href="/recipes/tags/patch/">patch</a>, <a href="/recipes/tags/python3/">python3</a>, <a href="/recipes/tags/rsync/">rsync</a>).
Revision 4.
</p>
<p>This is a pure Python implementation of the <a href="http://samba.anu.edu.au/rsync/">rsync algorithm</a>. On my desktop (3.0GHz dual core, 7200RPM), best case throughput for target file hash generation and delta generation is around 2.9MB/s. Absolute worst case scenario (no blocks in common) throughput for delta generation is 200KB/s to 300KB/s on the same system.</p>
<p>Tested in Python 2.5, 2.6, and 3.1. In 2.7, io.BufferedReader should yield the best throughput. On all other versions use __builtin__.open.</p>
Patch extension binaries compiled for previous (different) Python version (Python)
2010-03-12T15:50:04-08:00Denis Barmenkovhttp://code.activestate.com/recipes/users/57155/http://code.activestate.com/recipes/576873-patch-extension-binaries-compiled-for-previous-dif/
<p style="color: grey">
Python
recipe 576873
by <a href="/recipes/users/57155/">Denis Barmenkov</a>
(<a href="/recipes/tags/binaries/">binaries</a>, <a href="/recipes/tags/dll/">dll</a>, <a href="/recipes/tags/patch/">patch</a>, <a href="/recipes/tags/precompiled/">precompiled</a>, <a href="/recipes/tags/pyd/">pyd</a>, <a href="/recipes/tags/windows/">windows</a>).
Revision 4.
</p>
<p>It is helpful to download and install precompiled binaries of Python modules especially for Windows. Second way is longer: get module sources, build the C compiler environment, compile binaries, beware of compiler warnings, install module.</p>
<p>Often precompiled binaries can be patched to meet used Python version. </p>
<p>See 'discussions' below for details.</p>
pycurl-7.19.0 python3 patch (1 of 2) (Python)
2010-04-27T13:00:10-07:00Dima Tisnekhttp://code.activestate.com/recipes/users/4068698/http://code.activestate.com/recipes/577209-pycurl-7190-python3-patch-1-of-2/
<p style="color: grey">
Python
recipe 577209
by <a href="/recipes/users/4068698/">Dima Tisnek</a>
(<a href="/recipes/tags/patch/">patch</a>, <a href="/recipes/tags/pycurl/">pycurl</a>, <a href="/recipes/tags/python3/">python3</a>, <a href="/recipes/tags/python3_1/">python3_1</a>).
</p>
<p>Patches needed to install pycurl into python3</p>