Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 347439

Summary: Find references for nls entries too slow
Product: z_Archived Reporter: Michael Schaufelberger <bsi.msa>
Component: ScoutAssignee: Project Inbox <scout.sdk-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: mvi
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Michael Schaufelberger CLA 2011-05-27 08:05:19 EDT
Build Identifier: M20100211-1343

Finding references for entries in translation.nls is too slow. Using the "File Search" with Ctrl + H is much faster.

This holds for the Scout version we use in our project (20100705). The trunk version is working well.


Reproducible: Always

Steps to Reproduce:
1. Open translation.nls with Eclipse Scout (Release of July 2010)
2. Right click on an entry (e.g. "AddPerson") and choose "Find References to 'AddPerson'"
3. Wait
4. Keep waiting
5. Wait some more
6. Open the task manager and see the java process using 75% (3/4 cores)
7. Keep waiting
8. After 10 minutes of waiting (the progress bar being at 75%) click on "Cancel"
9. Wait about 20 seconds until the operation is finally cancelled
10. Press Ctrl+H, choose the tab "File Search", type Texts.get("AddPerson" as search string, click "Search" and see the result after 2 seconds.
Comment 1 Michael Schaufelberger CLA 2011-11-03 07:55:36 EDT
Reproducible with Release June 2011 except that cancelling works fine.
Comment 2 Matthias Villiger CLA 2012-03-07 07:45:49 EST
Performance of the reference search optimized.

But eventhough, please note that the "Find NLS references" search will always be some slower than a normal file search because the nls search actually does a java search and does more checks and parsing afterwards.

Can you please test if the performance is now acceptable?
Thanks
Comment 3 Michael Schaufelberger CLA 2012-03-07 07:54:06 EST
The performance is now absolutely acceptable, thank you very much!
Comment 4 Matthias Zimmermann CLA 2012-07-09 06:49:04 EDT
ticket closed.
deliverd as part of eclipse scout 3.8.0 (juno release train)