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 237901 - org.netbeans.modules.maven.api.FileUtilities.convertStringToFileObject: LowPerformance took 285785 ms.
Summary: org.netbeans.modules.maven.api.FileUtilities.convertStringToFileObject: LowPe...
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Milos Kleint
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2013-11-01 18:17 UTC by misterm
Modified: 2013-11-29 02:54 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 173062


Attachments
nps snapshot (3.09 MB, application/nps)
2013-11-01 18:17 UTC, misterm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2013-11-01 18:17:20 UTC
Build: NetBeans IDE Dev (Build 20131028-99a08841d45d)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.3-b01, Java(TM) SE Runtime Environment, 1.7.0_07-b11
OS: Windows 7

User Comments:
GUEST: I invoked intellisense to extend a super-class; I was typing the "extends ...." statement.

misterm: .



Maximum slowness yet reported was 285785 ms, average is 86238
Comment 1 misterm 2013-11-01 18:17:56 UTC
Created attachment 141786 [details]
nps snapshot
Comment 2 Milos Kleint 2013-11-01 18:28:03 UTC
misterm: please use a more recent jdk7 - update 7 is ancient and in other issues I've seen filesystem related slowness reports associated with pre update 21 and windows setups.
Comment 3 Milos Kleint 2013-11-27 15:21:57 UTC
http://hg.netbeans.org/core-main/rev/0c84cbd84df1

the changeset adds a simple root->charset cache that is reset on project reload, in that way repeated queries for one or more files in the same root are returned without touching the filesystem (with the possible exception of FileUtil.isparentof which is unavoidable)

consider fixed, not much more to do here given the current architecture (FileOwnerQuery)
Comment 4 Quality Engineering 2013-11-29 02:54:56 UTC
Integrated into 'main-silver', will be available in build *201311290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/0c84cbd84df1
User: Milos Kleint <mkleint@netbeans.org>
Log: #237901 remember source root->charset mapping, avoiding io touches on repeated queries. Resets on project reload.