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

List:       kde-pim
Subject:    Re: [Kde-pim] korganizer doesn't save resources immediately when
From:       mark () easymailings ! com
Date:       2007-03-27 23:52:39
Message-ID: 1860.64.179.89.214.1175039559.squirrel () webmail ! salinger ! jf-olm ! com
[Download RAW message or body]



> Re, fellow PIMsters...

> I suggest that we fix this problem by changing korganizer back to
saving

> its

> resource file (and living with the subsequent reload/reparse) on
_every_

> create, update, or delete action.  Kaddressbook does this, and while
it

> doesn't have nearly the work in the reload/reparse cycle, making

> korganizer

> behave the same way would be much more intuitive to our users, and
would

> also

> stop the data loss problems that are associated with not doing so.



+1



> 

> I'd greatly appreciate some

> comments/concerns/discussion around this



Do some simple profiling to figure out why the heck it takes so long to
load a text file from disk.  It shouldn't take long to narrow things
down.



This should be an extremely fast operation.  A quick google shows
examples of disk access speeds that are 40 MB/sec, and that doesn't count
the benefits of caching by the OS.  It ain't disk I/O that's
constraining this process ...



My guess is there are _lots_ of "news" and "deletes"
inside loops.



If this guess is correct, then you could allocate one pool of Incident
objects at app startup that the resource framework draws from and
replenishes as it processes the file.



m

_______________________________________________
kde-pim mailing list
kde-pim@kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/

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

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