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 174655 - Slow task indexing
Summary: Slow task indexing
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@ruby
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-10-15 14:34 UTC by Erno Mononen
Modified: 2011-01-28 20:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot (115.47 KB, application/octet-stream)
2009-10-15 14:35 UTC, Erno Mononen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2009-10-15 14:34:48 UTC
In the attached snapshot TaskIndexer#index takes 29s for a single Rails project. If it can't be made much faster than 
that, it should probably be turned off by default (at least for Ruby/Rails projects where the initial scanning of gems 
takes also a long time). The snapshot was taken when opening the OneBody project, git://github.com/seven1m/onebody.git 
(if you want to try it, checkout and create a new rails app w/ existing sources for it).
Comment 1 Erno Mononen 2009-10-15 14:35:32 UTC
Created attachment 89542 [details]
snapshot
Comment 2 Stanislav Aubrecht 2009-10-27 14:06:34 UTC
the snapshot shows that org.netbeans.ruby.railsprojects.RailsSource.getSourceGroups() is slow and it is invoked for each
file the task list needs to process. perhaps some weak-caching might speed it up a bit...
reassigning to ruby team for evaluation