[Botan-devel] Reducing Botan size

Jack Lloyd lloyd at randombit.net
Tue Feb 20 15:53:45 EST 2007


On Tue, Feb 20, 2007 at 08:31:53PM +0200, Felix Gartsman wrote:
> Hello,
> Thanks for the help.
> I removed the X.509 stuff, but it didn't help much - apparently the linker
> eliminated it.
> Empty main - 40kb
> Main with only LibraryInitializer - 490kb
> Full encryption sample - 530kb
> So the size issue is within the core stuff. Any ideas what code that
> LibraryInitializer references can be removed?
> 

Potentially, a lot. Add-in modules, the startup self tests, etc.

You could also replace the pooling allocator code with a simple
malloc() wrapper, assuming your malloc() implementation is a good/high
performance one.

-Jack


More information about the botan-devel mailing list