multiple file hash in a single read
- To: mathgroup at smc.vnet.net
- Subject: [mg132137] multiple file hash in a single read
- From: inner.mitochondrial.membrane at gmail.com
- Date: Sun, 22 Dec 2013 05:52:25 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- Delivered-to: l-mathgroup@wolfram.com
- Delivered-to: mathgroup-outx@smc.vnet.net
- Delivered-to: mathgroup-newsendx@smc.vnet.net
Dear Group To get CRC32 and MD5 ... hash of a file, I could use ({FileHash[#,"CRC32"],FileHash[#,"MD5"], ...})&/@fileList but it doesn't look smart because each file is read twice, a first time to compute CRC32 and second one for MD5, etc.. Any better way ? A simple way to efficiently parallelize this peculiar task over a multicore cpu would be very welcomed also. Thanks !! running: Mathematica 8.0.1 Win Xp ver. 5.1.2600 intel quad core q9400 2.66 Ghz 4 Gb ram