Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] how to use pre-build jdt index files?

> I’m not sure whether jdt index has bug in reuse existed index mechanism or not.

If startup is slower with pre-built indexes then this is a bug and should be reported together with a reproducible test case.

Dani

From: "Wang, Simon" <Yunfeng.Wang@xxxxxxxx>
To: "Eclipse JDT Core developers list." <jdt-core-dev@xxxxxxxxxxx>,
Cc: "jdt-core-dev-bounces@xxxxxxxxxxx" <jdt-core-dev-bounces@xxxxxxxxxxx>
Date: 30.11.2012 10:18
Subject: Re: [jdt-core-dev] how to use pre-build jdt index files?





Thanks for your reply.
 
> It can contribute to eclipse performance since indexing time is saved in the presence
> of prebuilt index files. Thus you should see better startup times if a project uses

> large static jars. Of course improvements will be noticeable only if indexing time

> is significant in the first place.

 
But from my experience, whole startup time is longer when I use existed index files.
Index time should be significant, if not use pre-built index files, all index files would be 90mb.
Currently, eclipse generated index files only 16mb.
It means we reused about 74mb index files.
 
I did see indexing seems to be blocked for about 1 minute.
I’m not sure whether jdt index has bug in reuse existed index mechanism or not.
 
Regards
Simon
From: jdt-core-dev-bounces@xxxxxxxxxxx [mailto:jdt-core-dev-bounces@xxxxxxxxxxx] On Behalf Of Srikanth S Adayapalam
Sent:
2012
1130 15:16
To:
Eclipse JDT Core developers list.
Cc:
Eclipse JDT Core developers list.; jdt-core-dev-bounces@xxxxxxxxxxx
Subject:
Re: [jdt-core-dev] how to use pre-build jdt index files?

 
> From: "Wang, Simon" <Yunfeng.Wang@xxxxxxxx>
> Sent by:
jdt-core-dev-bounces@xxxxxxxxxxx
>
> Jdt build process will reuse existed index files from my box, so
> that I assume jdt could use less time to parse jars to get indexs.


JDT build process does not use any files index files whether prebuilt

or ordinarily generated.

 
> If can’t reduce time, does it mean it can’t contribute to eclipse performance?

> But from guide, it claimed use existed indexes could improve performance…


It can contribute to eclipse performance since indexing time is saved in the presence

of prebuilt index files. Thus you should see better startup times if a project uses

large static jars. Of course improvements will be noticeable only if indexing time

is significant in the first place.


Srikanth



>  

> Regards

> Simon

> From:
jdt-core-dev-bounces@xxxxxxxxxxx [mailto:jdt-core-dev-
>
bounces@xxxxxxxxxxx] On Behalf Of Srikanth S Adayapalam
> Sent: 2012年11月29日 13:25
> To: Eclipse JDT Core developers list.
> Cc: Eclipse JDT Core developers list.;
jdt-core-dev-bounces@xxxxxxxxxxx
> Subject: Re: [jdt-core-dev] how to use pre-build jdt index files?

>  

> The build process itself does not use any indexing information and
> so cannot contribute to
> increased build times in and of itself. Not sure what else is at play.
>
> Srikanth
>
>
>
jdt-core-dev-bounces@xxxxxxxxxxx wrote on 11/28/2012 12:17:12 PM:
>
> > From: "Wang, Simon" <
Yunfeng.Wang@xxxxxxxx>
> > To: "Eclipse JDT Core developers list." <
jdt-core-dev@xxxxxxxxxxx>,
> > Date: 11/28/2012 12:16 PM
> > Subject: Re: [jdt-core-dev] how to use pre-build jdt index files?
> > Sent by:
jdt-core-dev-bounces@xxxxxxxxxxx
> >
> > Thanks Markus!
> >  
> > I generated index files first.
> > Then developed plugin to configure classpath entries by
> > “entryDescriptor.setClasspathAttribute
> > (IClasspathAttribute.INDEX_LOCATION_ATTRIBUTE_NAME, indexFile.toURL
> > ().toString());”
> >  
> > After launch eclipse and import maven projects, I found jdt do reuse
> > existed index files.
> > But it took longer time to complete build workspace job.
> >  
> > I have about 15 maven projects, before took 5 mins to build workspace.
> > Now, it took more than 6 mins to build workspace…
> >  
> > Is that expected result? I think pre-built index files should faster
> > build workspace, right?
> >  
> > Regards
> > Simon
> > From:
jdt-core-dev-bounces@xxxxxxxxxxx [mailto:jdt-core-dev-
> >
bounces@xxxxxxxxxxx] On Behalf Of Markus Keller
> > Sent: 2012年11月26日 18:22
> > To: Eclipse JDT Core developers list.
> > Subject: Re: [jdt-core-dev] how to use pre-build jdt index files?
> >  
> > As the N&N says, this feature is not directly accessible for users.
> >
> > PDE currently doesn't implement support for adding pre-built indexes
> > to OSGi bundles. However, this could be implemented similar to how
> > source bundles work.
> >
> >
http://help.eclipse.org/juno/topic/org.eclipse.jdt.doc.isv/guide/
> > jdt_api_searchindex.htm
> > tells how to use this if you implement your own classpath container.
> >
> >
https://bugs.eclipse.org/356620 has all the history.
> >
> > Markus
>
> >
> > From:
> >
> > "Wang, Simon" <
Yunfeng.Wang@xxxxxxxx>
> >
> > To:
> >
> > "
jdt-core-dev@xxxxxxxxxxx" <jdt-core-dev@xxxxxxxxxxx>,
> >
> > Date:
> >
> > 2012-11-23 06:27
> >
> > Subject:
> >
> > [jdt-core-dev] how to use pre-build jdt index files?
> >
> >  
> >
> >
> >
> >
> > Hi,
> >       After 3.8, JDT have JavaIndexer to pre-build index files for
> > dependencies.
> > I'm trying to do this.
> >      But my question is: when is the right time point to generate
> index files?
> > and how to apply those index files? Just copy those index files into
> > workspace/.plugins/{jdt.core.folder}?
> >
> > Regards
> > Simon_______________________________________________
> > jdt-core-dev mailing list
> >
jdt-core-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev
> > _______________________________________________
> > jdt-core-dev mailing list
> >
jdt-core-dev@xxxxxxxxxxx
> >
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev
> _______________________________________________
> jdt-core-dev mailing list
>
jdt-core-dev@xxxxxxxxxxx
>
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev_______________________________________________
jdt-core-dev mailing list
jdt-core-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jdt-core-dev



Back to the top