Bug 471501 - [tern][scriptrsolver] Improve logical file lookup performance
Summary: [tern][scriptrsolver] Improve logical file lookup performance
Status: CLOSED DUPLICATE of bug 457872
Alias: None
Product: Orion (Archived)
Classification: ECD
Component: JS Tools (show other bugs)
Version: 10.0   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 11.0   Edit
Assignee: Michael Rennie CLA
QA Contact:
URL:
Whiteboard:
Keywords: performance
Depends on:
Blocks:
 
Reported: 2015-06-30 20:34 EDT by Michael Rennie CLA
Modified: 2015-11-03 11:29 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Rennie CLA 2015-06-30 20:34:06 EDT
If you have a very large workspace it can take a very long time for the script resolver to lookup files corresponding to logical paths (from requirejs defines and node.js requires).

We need to try and avoid searching the entire workspace for files and instead prune down the search to only the containing project and any dependencies listed in package.json / project.json / etc.
Comment 1 Michael Rennie CLA 2015-11-03 11:29:46 EST
This has been tuned quite a bit in other bugs, like:

1. using proper scoping when sending search requests
2. avoiding sending repeat requests for failed searches
3. caching to avoid searching for the same path

The rest of any performance gains would realistically come from improvements to the search client. 

I am going to mark as a dupe of bug 457872.

*** This bug has been marked as a duplicate of bug 457872 ***