Bug 117658

Summary: Constant disk I/O when resizing Navigation panel
Product: [Unmaintained] kpdf Reporter: Boris Dušek <borisdusek>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: RESOLVED WORKSFORME    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Patch by Albert Astals Cid

Description Boris Dušek 2005-12-04 13:57:45 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Gentoo Packages
Compiler:          gcc 3.4.4 
OS:                Linux

Hi,

running KPDF 0.5 (KDE 3.5) here and want to report an excessive I/O issue.

When resizing the navigation panel (located on the left), there is a constant I/O (and is very noisy on my machine). I found by sysprof that it is related to KPDF::Part::saveSplitterSize(), which is called even *during* resizing (e.g. dragging with mouse) *and* immediately writes the settings to config file on harddisk by means of function KConfigSkeleton::writeConfig(); this writing consumes about 20% of CPU time spent in kpdf, so this will be not only I/O optimization.

Suggestion: write to config on disk (and maybe also internally save) the splitter size only at application exit.

Regards,
Boris Dusek
Comment 1 Boris Dušek 2005-12-04 14:03:13 UTC
Created attachment 13765 [details]
Patch by Albert Astals Cid

This is a patch made by Albert Astals Cid and it resolves the issue (=no
constant I/O and splitter size is correctly restored after aplication restart).
Thank you, Albert!
Comment 2 Boris Dušek 2005-12-04 14:04:17 UTC
The patch above solves the problem.