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 - LowPerformance took 25091 ms.
Summary: LowPerformance took 25091 ms.
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2012-03-11 08:41 UTC by KhArtNJava
Modified: 2012-04-03 18:41 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 185749


Attachments
nps snapshot (355.89 KB, application/nps)
2012-03-11 08:42 UTC, KhArtNJava
Details

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