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.
Extracted from the original issue 197270 with many invalid duplicates (reports with no relation to the css completion). There's one report (from the two I found in the many irrelevant) really showing the css completion problem: http://statistics.netbeans.org/exceptions/exception.do?id=461067 The problem has been already described in the original issue: Caused by very slow Windows disk IO FileUtil.toFileObject() ~ 22ms FileObject.getFileObject() ~ 15ms Since these are called quite frequently during computing the current file dependencies graph the result is that the completion is slow. Easiest way to fix this problem is to cache the dependencies graph for the edited file and invalidate it only if the index result changes (some of the deps. changed).
fixed in web-main
fixed in web-main#bc4aeb509e88 by implementing a cache for the getAllDependenciesGraph() method. The cache is invalidated when any of the dependencies in the indexer scope changes.
Integrated into 'main-golden', will be available in build *201105060000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/bc4aeb509e88 User: Marek Fukala <mfukala@netbeans.org> Log: #198337 - Slow CSS code completion - CssIndex.getAllDependenciesGraph()