Bug 117658 - Constant disk I/O when resizing Navigation panel
Summary: Constant disk I/O when resizing Navigation panel
Status: RESOLVED WORKSFORME
Alias: None
Product: kpdf
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-04 13:57 UTC by Boris Dušek
Modified: 2005-12-04 14:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch by Albert Astals Cid (1.36 KB, patch)
2005-12-04 14:03 UTC, Boris Dušek
Details

Note You need to log in before you can comment on or make changes to this bug.
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.