Message83984
| Author |
ebfe |
| Recipients |
ajaksu2, ebfe, pitrou, rhettinger |
| Date |
2009年03月22日.21:21:26 |
| SpamBayes Score |
0.010439489 |
| Marked as misclassified |
No |
| Message-id |
<1237756894.21.0.943105856074.issue1501108@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
This is true for all objects whose input could be concatenated.
For example with hashlib:
data = ['foobar']*100000
mdX = hashlib.sha1()
for d in data:
mdX.update(d)
mdY = hashlib.sha1()
mdY.update("".join(data))
mdX.digest() == mdY.digest()
the second version is multiple times faster... |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2009年03月22日 21:21:34 | ebfe | set | recipients:
+ ebfe, rhettinger, pitrou, ajaksu2 |
| 2009年03月22日 21:21:34 | ebfe | set | messageid: <1237756894.21.0.943105856074.issue1501108@psf.upfronthosting.co.za> |
| 2009年03月22日 21:21:27 | ebfe | link | issue1501108 messages |
| 2009年03月22日 21:21:26 | ebfe | create |
|