Hey all!

I've recently stumbled upon Crypto++ and, I must say - it's a great
library! Thanks; it sure saves time.

However, I'm having a bit of a problem here. Comparing the Base64
implementation to others I've seen on the web, it seems slow - it
takes about 1-2 seconds (using cryptest) to convert a 500KiB JPG file,
and iterating this code 100 times in a for loop...:

    string fileOut = filename + ".b64";

    FileSource f(filename.c_str(), true, new Base64Encoder(new
FileSink(fileOut.c_str())));

(where filename is the JPG to convert)

...takes 34 seconds and yields ~1 MiB/s performance. Comparing this to
some freely-available Base64 implementations on the web (most notably,
a challenge held at Experts-Exchange - http://tinyurl.com/56o4tx), it
is really, really lacking in this department. (1MiB/s vs. Microsoft's
CryptoAPI implementation [36.80MiB/s], and some going past 250MiB/s)

Am I doing something wrong here?

My test app was compiled using g++ 3.4.4 using cygwin and -O2 switch,
my computer is an Intel Core 2 Duo running at 2 GHz.

Thanks in advance,

B

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users" 
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at 
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---

Reply via email to