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 209421

Summary: LowPerformance took 25091 ms.
Product: php Reporter: KhArtNJava
Component: EditorAssignee: Tomas Zezula <tzezula>
Status: RESOLVED FIXED    
Severity: normal CC: areasas, KhArtNJava, Montserrat, tzezula, vercinstex
Priority: P3 Keywords: PERFORMANCE
Version: 7.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 185749
Attachments: nps snapshot

Description KhArtNJava 2012-03-11 08:41:52 UTC
This issue was reported manually by KhArtNJava.
It already has 1 duplicates 


Build: NetBeans IDE Dev (Build 201203100400)
VM: Java HotSpot(TM) Client VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

User Comments:
KhArtNJava: php code editing

KhArtNJava: on php code editing



Maximum slowness yet reported was 25091 ms, average is 15841
Comment 1 KhArtNJava 2012-03-11 08:42:03 UTC
Created attachment 116542 [details]
nps snapshot
Comment 2 Ondrej Brejla 2012-03-26 09:29:21 UTC
I think, that it doesn't hangs in PHP CC, it seems quite OK for me...but maybe something strange in Parsing API? Tomasi, what do you think?
Comment 3 Tomas Zezula 2012-03-26 17:07:43 UTC
There is a problem with FileSystem's recursive listener.
It's not multi threaded and it takes ages, I think I am able to eliminate this call for code completion thread.
Comment 4 Tomas Zezula 2012-03-26 17:51:08 UTC
The funny thing is that the slow FileUtil.addRecursiveListener does file crawling. The issue is reported on Win32 and XNU where it's in fact not needed as the OS provides recursive file events.
Comment 5 Tomas Zezula 2012-03-26 17:54:27 UTC
As I am not able to do anything with the FileUtil.addRecursiveListener I at least removed the need to call it.
It still may slow the code completion a bit when called concurrently to code completion but it does not block it.
Fixed jet-main b7ebd545328a