Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319545 - ScriptBuilder needs to be able to filter resources when performing a full build
Summary: ScriptBuilder needs to be able to filter resources when performing a full build
Status: RESOLVED INVALID
Alias: None
Product: DLTK
Classification: Technology
Component: Common (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: dltk.common-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-12 07:46 EDT by Gabriel Petrovay CLA
Modified: 2010-07-12 10:11 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabriel Petrovay CLA 2010-07-12 07:46:17 EDT
Hi,

During a full build the ScriptBuilder will read all the resources in a
project: Scriptuilder:getResourcesFrom(...). The ResourceVisitor
visits all the resources in a given project. For a project with 10000
files in it, out of hich only one is a ScriptModule, all the resources
are scanned and DLTKCore.create(res) is called for each resource.

This project takes for example about 1.5 hours on my machine. Most of
the user actions are blocked by the "Building project" job.

Is there a way to filter the resources that need to be processed? In
my example I know that one folder contains 9990 resources that are not
SourceModules so I can ignore that folder.

The ScriptBuilder:ResourceVisitor should filter resources to be processed to avoid long running jobs that block the user from doing other tasks.

Thanks!
Comment 1 Alex Panchenko CLA 2010-07-12 10:11:54 EDT
http://dev.eclipse.org/mhonarc/lists/dltk-dev/msg01981.html

Overriding canValidateContent(IResource resource) in the IDLTKLanguageToolkit implementation helps, as file read operations are not performed.