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 104007 - Searching compilers in path slows down the Netbeans startup time
Summary: Searching compilers in path slows down the Netbeans startup time
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: _ gordonp
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2007-05-15 18:54 UTC by Vladimir Kvashin
Modified: 2007-06-22 22:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The stack fragment (4.54 KB, text/plain)
2007-05-15 18:55 UTC, Vladimir Kvashin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Kvashin 2007-05-15 18:54:27 UTC
For now, CND searches compilers in PATH during startup.
This might slow down Netbeans startup dramatically.

I observed the following situation. Last time I exited CND with a native project
open. On the next CND startup I didn't have compilers in my path; and my path
contained several network (/net/...) locations that were unreachable. The CND
startup seemed to be just endless. After waiting 5 (!) minutes for the main
window to come up I had to kill the process.
Comment 1 Vladimir Kvashin 2007-05-15 18:55:57 UTC
Created attachment 42427 [details]
The stack fragment
Comment 2 _ gordonp 2007-06-22 22:29:45 UTC
> For now, CND searches compilers in PATH during startup

The above was not true. The path search was for terminal emulators (gnome-terminal, konsole,
and xterm) on Unix systems. I've sped it up and provided a 5 second timeout. I haven't removed
the path search completely. I did add a check in a default directory for gnome-terminal and
xterm (kde isn't installed in a standard enough location to do this). This should also limit
the times network directories are searched.

But there still is potential for going out over the network here. I've just minimized it.