[Baypiggies] mmap question
K. Richard Pixley
rich at noir.com
Sat Dec 18 06:54:00 CET 2010
Ok, I'm stumped.
I have two files. They are the same size and I've mmaped them both into
xmap and ymap. I'd like to compare their contents but without copying
them into yet another chunk of memory before I do so. There should be a
way to bitblt these things.
The only things I can think to do involve forcing a string copy first.
xmap[:] == ymap[:]
bytearray(xmap) == bytearray(ymap)
xmap.read() == ymap.read()
Can anyone think of a way to do this without first copying them to strings?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Baypiggies