<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>117658</bug_id>
          
          <creation_ts>2005-12-04 13:57:44 +0000</creation_ts>
          <short_desc>Constant disk I/O when resizing Navigation panel</short_desc>
          <delta_ts>2005-12-04 14:04:17 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Gentoo Packages</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>wishlist</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Boris Dušek">borisdusek</reporter>
          <assigned_to name="Albert Astals Cid">aacid</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>395478</commentid>
    <comment_count>0</comment_count>
    <who name="Boris Dušek">borisdusek</who>
    <bug_when>2005-12-04 13:57:45 +0000</bug_when>
    <thetext>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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>395480</commentid>
    <comment_count>1</comment_count>
      <attachid>13765</attachid>
    <who name="Boris Dušek">borisdusek</who>
    <bug_when>2005-12-04 14:03:13 +0000</bug_when>
    <thetext>Created attachment 13765
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!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>395481</commentid>
    <comment_count>2</comment_count>
    <who name="Boris Dušek">borisdusek</who>
    <bug_when>2005-12-04 14:04:17 +0000</bug_when>
    <thetext>The patch above solves the problem.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>13765</attachid>
            <date>2005-12-04 14:03:13 +0000</date>
            <delta_ts>2005-12-04 14:03:13 +0000</delta_ts>
            <desc>Patch by Albert Astals Cid</desc>
            <filename>PATCH</filename>
            <type>text/plain</type>
            <size>1395</size>
            <attacher name="Boris Dušek">borisdusek</attacher>
            
              <data encoding="base64">SW5kZXg6IHBhcnQuY3BwCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHBhcnQuY3BwCShyZXZpc2nDs246IDQ4MTA3
OCkKKysrIHBhcnQuY3BwCShjb3BpYSBkZSB0cmFiYWpvKQpAQCAtMjc0LDYgKzI3NCw4IEBACiAJ
Y29ubmVjdCggbV93YXRjaGVyLCBTSUdOQUwoIGRpcnR5KCBjb25zdCBRU3RyaW5nJiApICksIHRo
aXMsIFNMT1QoIHNsb3RGaWxlRGlydHkoIGNvbnN0IFFTdHJpbmcmICkgKSApOwogCW1fZ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EgaGFjayBiZWNhdXNlIHdlIGNhbiBub3QgdXNlIHdyaXRlQ29uZmlnIG9u
IHBhcnQgZGVzdHJ1Y3RvcgorICAvLyBhbmQgd2UgZG9uJ3Qgd2FudCB0byB3cml0ZWNvbmZpZyBl
dmVyeSB0aW1lIHNvbWVvbmUgbW92ZXMgdGhlIHNwbGl0dGVyCisgIC8vIHNvIHdlIHVzZSBhIFFU
aW1lciBlYWNoIDUwMCBtcworICBRVGltZXIgKm1fc2F2ZVNwbGl0dGVyU2l6ZVRpbWVyOworCiAJ
S0RpcldhdGNoICptX3dhdGNoZXI7CiAJUVRpbWVyICptX2RpcnR5SGFuZGxlcjsKIAlEb2N1bWVu
dFZpZXdwb3J0IG1fdmlld3BvcnREaXJ0eTsK
</data>

          </attachment>
      

    </bug>

</bugzilla>