Hi Andy,

I my experience C++ templates result in code bloat (I know its a buzzword
:-) and depending on how good the compiler handles templates (and especially
meta templates) also the compile time is hugely affected...

I've seen the gcc compiler use more that 20 minutes on a single rather small
.cc file (gcc 2.95.1 on a Sun@400MHz) because of the reasons given above
:-(

Another more simple explanation: could it be that your code is not stripped
for debug or not optimized ??? (I haven't checked).

Anyway thanks for your answer.

kind regards Uffe


----- Original Message -----
From: "Andreas Aardal Hanssen" <[EMAIL PROTECTED]>
To: "Binc IMAP Server" <[EMAIL PROTECTED]>
Sent: Sunday, February 09, 2003 11:03 AM
Subject: Re: [bincimap] imapd memory footprint - bincimapd vs courier-imapd


> Hi, Uffe.
>
> On Sun, 9 Feb 2003, Uffe Jakobsen wrote:
> >Hi
> >I'm considering to convert to bincimap from courier-imapd.
> >One thing that struct me it that your imapd binaries are 8 times bigger
than
> >couriers imapd - and that is the dynamic one.
> >How come ?
>
> In general, I have seen that C++ code gets much bigger than C code, but
> I'm not quite sure why.
>
> >Knowing that you've done bincimapd in C++ - I don't know if you use C++
> >templates - could that be the reason ??
>
> No home made templates, but I use the standard templates like vector, map
> and multimap.
>
> >I've compared the following versions
> >Bincimapd-dynamic-rh8 1.0.21:
> >-rwxr-xr-x    1 root     root        10289 Feb  8 15:19
> >/opt/bincimap/bin/bincimap-auth-checkpassword
> >-rwxr-xr-x    1 root     root       892859 Feb  8 15:19
> >/opt/bincimap/bin/bincimapd
> >-rwxr-xr-x    1 root     root         5091 Feb  8 15:19
> >/opt/bincimap/bin/bincimap-uidpwd
> >Bincimapd-dynamic-rh8 1.0.21:
> >-rwxr-xr-x    1 root    root           973855 Feb  8 16:54
> >/opt/bincimap/bin/bincimap-auth-checkpassword
> >-rwxr-xr-x    1 root    root           399930 Feb  8 16:54
> >/opt/bincimap/bin/bincimap-uidpwd
> >-rwxr-xr-x    1 root    root          2735939 Feb  8 16:54
> >/opt/bincimap/bin/bincimapd
> >Courier-imapd 1.7.0 (compiled with no options - just rpmbuild <tarball>):
> >-rwxr-xr-x    1 bin      bin         52252 Feb  8 23:18
> >/usr/lib/courier-imap/bin/couriertls
> >-rwxr-xr-x    1 bin      bin         20188 Feb  8 23:18
> >/usr/lib/courier-imap/bin/deliverquota
> >-rwxr-xr-x    1 bin      bin        186236 Feb  8 23:18
> >/usr/lib/courier-imap/bin/imapd
> >-rwxr-xr-x    1 bin      bin         22140 Feb  8 23:18
> >/usr/lib/courier-imap/bin/maildirmake
> >-rwxr-xr-x    1 bin      bin         28060 Feb  8 23:18
> >/usr/lib/courier-imap/bin/pop3d
>
> Funny, really, because Courier-IMAP has over 80000 lines of code. Maybe
> there's something in the build process that isn't quite right with Binc.
>
> Andy
>
> --
> Andreas Aardal Hanssen | http://www.andreas.hanssen.name/gpg
> Author of Binc IMAP    | Nil desperandum
>
>

Reply via email to