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

List:       kmail-devel
Subject:    Re: KMMsgDict slowness
From:       Michael =?iso-8859-1?q?H=E4ckel?= <haeckel () kde ! org>
Date:       2002-01-02 17:35:59
[Download RAW message or body]

On Thursday 03 January 2002 01:15, Ronen Tzur wrote:
>
> Alright, then I will try to implement the final optimization, which would
> be to have the reverse-array point directly to the corresponding entry in
> the dictionary (instead of keeping the serial number for that message).
>
> But for KMMsgDict::getMsgSerNum() to still work in this situtation requires
> four more bytes per dictionary element, to keep the serial number.
> Is this ok?

If this requires more memory, then I don't see, why we should do it.

All what we get is a speed improvement, that would allow then maybe 12 instead 
of 8 messages moved per second. This is still far away from what one would 
expect from a computer with a few hundred MHz.

> > However it now crashes always, when I try to store a message in the
> > drafts folder.
>
> That doesn't happen here.   I tried both moving an existing message
> into the drafts folder, and also "Save in Drafts Folder" from the composer.
> Both work.

See below. Maybe fp is not valid or why should rewind crash?

Maybe also your patch was broken and a part was missing, at least "patch" 
complained and I had to apply the changes to kmmsglist.cpp manually.

Regards,
Michael Häckel

[New Thread 1024 (LWP 18823)]
0x41454079 in wait4 () from /lib/libc.so.6
#0  0x41454079 in wait4 () from /lib/libc.so.6
#1  0x414cc944 in __DTOR_END__ () from /lib/libc.so.6
#2  0x41333177 in waitpid () from /lib/libpthread.so.0
#3  0x40a95152 in KCrash::defaultCrashHandler ()
   from /opt/kde3/lib/libkdecore.so.4
#4  0x41330bc4 in pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  0x41418eaa in rewind () from /lib/libc.so.6
#7  0x0812ed32 in KMMsgDict::openFolderIds (this=0x83d0578, folder=0x8379c40)
    at kmmsgdict.cpp:339
#8  0x0812f88c in KMMsgDict::appendtoFolderIds (this=0x83d0578, 
    folder=0x8379c40, index=17) at kmmsgdict.cpp:401
#9  0x08114965 in KMFolder::appendtoMsgDict (this=0x8379c40, idx=17)
    at kmfolder.cpp:1265
#10 0x08186010 in KMFolderMbox::addMsg (this=0x8379c40, aMsg=0x8bbe210, 
    aIndex_ret=0x0) at kmfoldermbox.cpp:849
#11 0x08108af8 in KMComposeWin::doSend (this=0x8bc11b8, aSendNow=0, 
    saveInDrafts=true) at kmcomposewin.cpp:2213
#12 0x08108f2a in KMComposeWin::slotSaveDraft (this=0x8bc11b8)
    at kmcomposewin.cpp:2258
#13 0x080f5489 in KMComposeWin::qt_invoke (this=0x8bc11b8, _id=69, 
    _o=0xbfffe9b8) at kmcomposewin.moc:456
#14 0x40d9fea4 in QObject::activate_signal ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#15 0x40d9fdee in QObject::activate_signal ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#16 0x40903cb9 in KAction::activated () from /opt/kde3/lib/libkdeui.so.4
#17 0x408f718f in KAction::slotActivated () from /opt/kde3/lib/libkdeui.so.4
#18 0x40903e82 in KAction::qt_invoke () from /opt/kde3/lib/libkdeui.so.4
#19 0x40d9fea4 in QObject::activate_signal ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#20 0x41045815 in QSignal::signal () from /usr/local/qt3/lib/libqt-mt.so.3
#21 0x40db4a6d in QSignal::activate () from /usr/local/qt3/lib/libqt-mt.so.3
#22 0x40e824fd in QPopupMenu::mouseReleaseEvent ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#23 0x40dcc741 in QWidget::event () from /usr/local/qt3/lib/libqt-mt.so.3
#24 0x40d47b9c in QApplication::internalNotify ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#25 0x40d474e7 in QApplication::notify () from 
/usr/local/qt3/lib/libqt-mt.so.3
#26 0x409fc5b5 in KApplication::notify () from /opt/kde3/lib/libkdecore.so.4
#27 0x40cfa7ce in QETWidget::translateMouseEvent ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#28 0x40cf7f75 in QApplication::x11ProcessEvent ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#29 0x40cf6c36 in QApplication::processNextEvent ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#30 0x40d49081 in QApplication::enter_loop ()
   from /usr/local/qt3/lib/libqt-mt.so.3
#31 0x40cf6b9b in QApplication::exec () from /usr/local/qt3/lib/libqt-mt.so.3
#32 0x081c768e in main (argc=1, argv=0xbffff414) at main.cpp:294
#33 0x413c97ee in __libc_start_main () from /lib/libc.so.6

_______________________________________________
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