<<< Date Index >>>     <<< Thread Index >>>

Re: header_cache broken in cvs



Hello Aron,

short answer: yes, it does. Long answer on debian sarge with
self-compiled qdbm libs:

        (faui02) [~] mkdir /var/tmp/sithglan
        (faui02) [~] cd !$
        cd /var/tmp/sithglan
        (faui02) [/var/tmp/sithglan] cvs -q 
-d:pserver:anonymous@xxxxxxxxxxxx:/cvsroots co mutt
        ...
        (faui02) [/var/tmp/sithglan] cd mutt
        ./mutt
        (faui02) [/var/tmp/sithglan/mutt] how mutt configure
        # mutt

        #linux:
        apt-get install libdb4.2-dev
        export CFLAGS='-O2'
        export CPPFLAGS=-I/home/cip/adm/sithglan/work/mutt/git/qdbm-1.8.24
        export LDFLAGS='-Wl,--rpath 
-Wl,/home/cip/adm/sithglan/work/mutt/git/qdbm-1.8.24 
-L/home/cip/adm/sithglan/work/mutt/git/qdbm-1.8.24'
        aclocal -I m4 && autoheader2.50 && (cd m4 && make -f Makefile.am.in ) 
&& automake && autoconf2.50
        # Testing:  aclocal-1.9 -I m4 && autoheader2.50 && (cd m4 && make -f 
Makefile.am.in ) && automake-1.9&& autoconf2.50
        ./configure --enable-hcache --enable-imap --with-slang --with-ssl
        ./configure --enable-hcache --enable-imap --with-slang --with-ssl 
--without-qdbm
        ./configure --enable-hcache --enable-imap --with-slang --with-ssl 
--without-qdbm --without-gdbm
        make AUTOHEADER=autoheader2.50 AUTOCONF=autoconf2.50

        # Solaris:
        export LD_OPTIONS="-R/opt/csw/lib -L/opt/csw/lib -R/opt/csw/bdb4/lib 
-L/opt/csw/bdb4/lib"
        export 
PATH="/opt/forte11/SUNWspro/bin:/usr/ccs/bin:/usr/bin:/usr/openwin/bin:/opt/csw/bin:/local/bitkeeper/bin"
        export CPPFLAGS="-I/opt/csw/include"
        export CFLAGS="-fast"
        ./prepare --enable-hcache --enable-imap --with-slang=/opt/csw 
--with-ssl=/opt/csw
        ./prepare --enable-hcache --enable-imap --with-slang=/opt/csw 
--with-ssl=/opt/csw --without-qdbm
        ./prepare --enable-hcache --enable-imap --with-slang=/opt/csw 
--with-ssl=/opt/csw --without-qdbm --without-gdbm --with-bdb=/opt/csw/bdb4
        (faui02) [/var/tmp/sithglan/mutt] bash
        sithglan@faui02:/var/tmp/sithglan/mutt$ export CFLAGS='-O2'
        sithglan@faui02:/var/tmp/sithglan/mutt$ export 
CPPFLAGS=-I/home/cip/adm/sithglan/work/mutt/git/qdbm-1.8.24
        sithglan@faui02:/var/tmp/sithglan/mutt$ export LDFLAGS='-Wl,--rpath 
-Wl,/home/cip/adm/sithglan/work/mutt/git/qdbm-1.8.24 
-L/home/cip/adm/sithglan/work/mutt/git/qdbm-1.8.24'
        sithglan@faui02:/var/tmp/sithglan/mutt$ aclocal -I m4 && autoheader2.50 
&& (cd m4 && make -f Makefile.am.in ) && automake && autoconf2.50
        ...
        sithglan@faui02:/var/tmp/sithglan/mutt$ ./configure --enable-hcache 
--enable-imap --with-slang --with-ssl
        ...
        sithglan@faui02:/var/tmp/sithglan/mutt$ make AUTOHEADER=autoheader2.50 
AUTOCONF=autoconf2.50
        ...
        sithglan@faui02:/var/tmp/sithglan/mutt$ echo set header_cache="`pwd`/" 
> muttrc
        sithglan@faui02:/var/tmp/sithglan/mutt$ cat muttrc
        set header_cache=/var/tmp/sithglan/mutt/

# MAILDIR:
        sithglan@faui02:/var/tmp/sithglan/mutt$ time ./mutt -nF~/null -f 
~/Maildir/.lists.uml -e 'exec exit'

        real    2m59.359s
        user    0m2.220s
        sys     0m5.354s
        sithglan@faui02:/var/tmp/sithglan/mutt$ time ./mutt -nF~/null -f 
~/Maildir/.lists.uml -e 'exec exit'

        real    0m1.039s
        user    0m0.579s
        sys     0m0.395s

# IMAP:

        sithglan@faui02:/var/tmp/sithglan/mutt$ time ./mutt -nF~/null -f 
imaps://glanzman@xxxxxxxxxxxxxxxxx/ -e 'exec exit'

        real    0m24.834s
        user    0m0.069s
        sys     0m0.038s
        sithglan@faui02:/var/tmp/sithglan/mutt$ !!
        time ./mutt -nF~/null -f imaps://glanzman@xxxxxxxxxxxxxxxxx/ -e 'exec 
exit'

        real    0m5.490s
        user    0m0.065s
        sys     0m0.026s

Note: IMAP does take so long because I have to type in my password, but the 
header cache works for sure.
        
Yours,
        Thomas