This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171337

Summary: Enter in PHP editor generates ~170 disk touches
Product: php Reporter: Jaroslav Tulach <jtulach>
Component: EditorAssignee: rmatous <rmatous>
Status: VERIFIED FIXED    
Severity: blocker CC: issues, pjiricka
Priority: P2 Keywords: PERFORMANCE, TEST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: Test to try the counting yourself

Description Jaroslav Tulach 2009-09-02 16:57:51 UTC
An enter in PHP Editor seems to generate 170 disk touches. This is slightly too much and deserves some elimination. 
More info at http://wiki.netbeans.org/FitnessWithoutTouches
Comment 1 Jaroslav Tulach 2009-09-02 17:00:00 UTC
Created attachment 86985 [details]
Test to try the counting yourself
Comment 2 rmatous 2009-09-10 07:23:36 UTC
http://hg.netbeans.org/web-main/rev/c9601e164cb4

Notes:
many touched files are files in userdir(not sources) - index, preferences
includes also UI gesture collector touches

Fixed:
- code containing include, require statements do not touch files until needed
- navigator doesn't use index any more
- hints may need index but getting PHPIndex involves disk touches even if index isn't used later - so lazy
Comment 3 Quality Engineering 2009-09-11 21:36:02 UTC
Integrated into 'main-golden', will be available in build *200909111401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/c9601e164cb4
User: Radek Matous <rmatous@netbeans.org>
Log: performance improvements: minimize disk touches #171337, avoid index reading in structure scanner #171571, hints get index just in case if needed, model cached together with parser result ...
Comment 4 Jaroslav Tulach 2009-09-15 07:36:10 UTC
I can verify that the amount of touches is now down to ~32. The rest is caused by mercurial, DiffSideBar and 
CloneableEditor as described and tracked in issue 171330