Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » ScriptBuilder full build too slow because it reads all IReources in a project
ScriptBuilder full build too slow because it reads all IReources in a project [message #546281] Mon, 12 July 2010 11:38 Go to next message
Gabriel Petrovay is currently offline Gabriel PetrovayFriend
Messages: 42
Registered: July 2009
Member
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.

Thanks!
Re: ScriptBuilder full build too slow because it reads all IReources in a project [message #546347 is a reply to message #546281] Mon, 12 July 2010 14:10 Go to previous message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 342
Registered: July 2009
Senior Member
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.
Previous Topic:Resolving item against project's build path
Next Topic:How manage Completion for Java Model with Freemarker script.
Goto Forum:
  


Current Time: Fri Mar 29 07:28:58 GMT 2024

Powered by FUDForum. Page generated in 0.02285 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top