View Single Post
Old 03-10-2012, 04:39 PM   #27
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,510
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Joykins View Post
Hm...10 minutes to 5 seconds is v. impressive!
Having peeked at the code, it seems to be down to two things.
  1. A native (compiled C++ code) implementation of the encryption algorithm
  2. Using a more efficient way of concatenating blocks of data in python

The first is mostly responsible for the speed up on small files.
The second is mostly responsible for the speed up on big files.

Obviously, both help with both small and big files, but that's the way the benefits seem to split.
pdurrant is offline   Reply With Quote