[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kmail-devel
Subject:    Re: Displaying large message takes loooong
From:       Don Sanders <sanders () kde ! org>
Date:       2002-10-14 11:52:05
[Download RAW message or body]

When you display the problematic message is normal memory being 
exhausted?

That is do you notice frequent disk access and does top indicate 
increasing amounts of swap being used?

Can you show the output from top before and during display of the 
message?

I don't see why replace should be the bottleneck given the fact that 
this would just be one more copy of the message on top of several 
others. Perhaps the replace call was the 'last straw' and during the 
replace call normal memory was exhausted, pages started being swapped 
to and from swap on disk and hence display was slow.

I also get the impression that the slowness here is possibly due to a 
text or html attachment being shown inline, is this the case? 

Perhaps in this case it is most sensible to only show the first, say, 
100kb of the message inline and allow the user to open an attachment 
to see the complete text.

Don.

On Saturday 12 October 2002 01:45, Martin Koller wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi all,
>
> is this a known issue, that if I select a message, which is about
> 850KB in size (it has 2 attachments, one with 639KB, one with
> 209KB), kmail processes for about 60 seconds before responding and
> displaying?
>
> (Is that what Don enhanced with his zero copy patch in make_it_cool
> ?)
>
> I started kmail with gdb and got the following backtrace:
>
> 0x412fe535 in memmove (dest=0x43399a1a, src=0x43399a1e, len=891370)
> at ../sysdeps/generic/memmove.c:73
> 73      ../sysdeps/generic/memmove.c: No such file or directory.
>         in ../sysdeps/generic/memmove.c
> Current language:  auto; currently c
> (gdb) bt
> #0  0x412fe535 in memmove (dest=0x43399a1a, src=0x43399a1e,
> len=891370) at ../sysdeps/generic/memmove.c:73
> #1  0x40f5ca5f in QString::remove () at eval.c:41
> #2  0x40f5cba5 in QString::replace () at eval.c:41
> #3  0x40f5cab5 in QString::replace () at eval.c:41
> #4  0x40f5cceb in QString::replace () at eval.c:41
> #5  0x40f38d86 in QCString::replace () at eval.c:41
> #6  0x0814ec07 in KMMessagePart::bodyDecoded (this=0x86974c0) at
> /usr/lib/qt3-gcc2.96/include/qcstring.h:240
> #7  0x0811e446 in KMReaderWin::parseObjectTree (reader=0x855c0a8,
> resultStringPtr=0xbfffdb90, useThisCryptPlug=0x0,
>     node=0x86974a8, showOneMimePart=false, keepEncryptions=false,
> includeSignatures=true) at partNode.h:154
> #8  0x081249be in KMReaderWin::parseObjectTree (reader=0x855c0a8,
> resultStringPtr=0xbfffdb90, useThisCryptPlug=0x0,
>     node=0x85fd930, showOneMimePart=false, keepEncryptions=false,
> includeSignatures=true) at kmreaderwin.cpp:1389
> #9  0x0811fd15 in KMReaderWin::parseObjectTree (reader=0x855c0a8,
> resultStringPtr=0x0, useThisCryptPlug=0x0,
>     node=0x8699740, showOneMimePart=false, keepEncryptions=false,
> includeSignatures=true) at kmreaderwin.cpp:705
> #10 0x08134b56 in KMReaderWin::parseMsg (this=0x855c0a8,
> aMsg=0x8697ba8, onlyProcessHeaders=false) at kmreaderwin.cpp:3289
> #11 0x0812f70e in KMReaderWin::parseMsg (this=0x855c0a8) at
> kmreaderwin.cpp:2560
> #12 0x0812b9bd in KMReaderWin::updateReaderWin (this=0x855c0a8) at
> kmreaderwin.cpp:2299
> #13 0x08147cd9 in KMReaderWin::qt_invoke (this=0x855c0a8, _id=43,
> _o=0xbffff0b0) at kmreaderwin.moc:232
>
> - --
> Best regards/Schöne Grüße
>
> Martin
>
> Public key at:
> http://blackhole.pca.dfn.de:11371/pks/lookup?op=get&search=0x8DFB0F
>86 -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
> Comment: For info see http://www.gnupg.org
>
> iD8DBQE9pvIoHmdPoI37D4YRAgTqAJ0fz2TbTnW9VFz6bMNFh4QrlY20nQCdGDMl
> BSqrNvrOBsueOU1CxiChKMc=
> =5bgP
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> KMail Developers mailing list
> kmail@mail.kde.org
> http://mail.kde.org/mailman/listinfo/kmail

_______________________________________________
KMail Developers mailing list
kmail@mail.kde.org
http://mail.kde.org/mailman/listinfo/kmail
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic