can we have a filecmp.cmp() that accept a different buffer size?
bokr at oz.net
Thu Jun 12 18:43:35 CEST 2003
On Thu, 12 Jun 2003 08:20:39 GMT, Kendear <kendear at nospam.com> wrote:
>filecmp.cmp() uses a BUFSIZE of 8k to compare.
>For files that are 500MB, the hard disk is really
>busy, going back and forth, while my 512MB RAM is
>sitting there, sipping margarita. Can we have a
>version of filecmp.cmp() (and filecmp's other
>methods) that accepts a BUFSIZE, such as 1MB or more?
I haven't used it, but as a quick hack, what happens if you
import filecmp and just set filecmp.BUFSIZE to whatever
you want before using the functions?
More information about the Python-list