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 161456 - [codel model] Non scalable "find usages" for small keywords
Summary: [codel model] Non scalable "find usages" for small keywords
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 6.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords: PERFORMANCE
Depends on:
Blocks:
 
Reported: 2009-03-30 11:50 UTC by rmartins
Modified: 2009-04-17 10:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rmartins 2009-03-30 11:50:09 UTC
I am usingrather large project, the ACE+TAO middleware
(http://download.dre.vanderbilt.edu/previous_versions/ACE+TAO-5.6.8.tar.bz2).
Here are the steps that I took:
1. mkdir build (in ACE_TAO main directory)
2. cd build
3. ../configure --enable-ace-reactor-notification-queue

The "find usages" is too slow for keywords that are common (and small), like "run", "close".
This method only uses 1 core.
Comment 1 Vladimir Voskresensky 2009-03-30 12:21:30 UTC
thanks for the issue :-)
I planned this improvement for 6.7
Comment 2 rmartins 2009-04-06 17:46:47 UTC
Hi Vladimir,
do you need thread dumps?

Rolando
Comment 3 Vladimir Voskresensky 2009-04-07 11:14:58 UTC
Hi, Rolando,
No, thanks, I see the issue.

Vladimir.
Comment 4 Vladimir Voskresensky 2009-04-16 16:05:19 UTC
use [CoreNr + 1] threads for find usages:
 http://hg.netbeans.org/cnd-main?cmd=changeset;node=035753fb227b
Comment 5 Quality Engineering 2009-04-17 08:38:16 UTC
Integrated into 'main-golden', will be available in build *200904170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/035753fb227b
User: Vladimir Voskresensky <vv159170@netbeans.org>
Log: fixing IZ#161456: [codel model] Non scalable "find usages" for small keywords
Comment 6 rmartins 2009-04-17 09:37:30 UTC
Hi Vladimir,
I tried it and on my quad-core I got a ~x4 speedup factor. Cool!
Did you (team) manage to advance in the code model speedup/optimization & memory usage?
I would like to contribute more, but I really need the speedup for large projects.

Thanks for your effort,
Rolando
Comment 7 Vladimir Voskresensky 2009-04-17 10:06:52 UTC
Hi, Rolando,
We are constantly work on optimizations and it's always in tasks for each release. Your contributions are very welcome.
Btw, you already contribute quite a few, because can inform how our "theoretical" improvements affects "real" life usages.

Nice to hear about your x4 factor :-)
Are you fine if I close this particular issue as fixed?

Thanks,
Vladimir.
Comment 8 rmartins 2009-04-17 10:21:34 UTC
>Hi, Rolando,
>We are constantly work on optimizations and it's always in tasks for each release. Your contributions are very welcome.
>Btw, you already contribute quite a few, because can inform how our "theoretical" improvements affects "real" life >usages.
I really think that you are doing an amazing job, the progress rate is impressive.
I like to give feedback to help you improve CND but also to let you know that your work is effectively helping others.
In my case, having to analyze large amounts of code, I really need a good tool that helps me out.

>Nice to hear about your x4 factor :-)
>Are you fine if I close this particular issue as fixed?
Sure thing!.:-)

As soon the parsing and memory comes down, I won't need anything else;)

Thanks,
Rolando



Comment 9 Vladimir Voskresensky 2009-04-17 10:41:46 UTC
thanks for your feedback :-)
closing as fixed