You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@iseran.com> on 2001/12/11 08:05:14 UTC

Index.list in JAR files

Silly question.

When exactly does the classloader use this? i.e how much speedup does it
really give?

The sun docos say network classloaders, for applets and the like can exhibit
speedup, but it seems to me that unless classloader and server are talking
HTTP1.1 for byte-range downloads, applets arent going to be able to
selectively load files from a JAR.

Web start, on the other hand, should be able to use it. So, is that the
place where it is used? Does anyone have any quantitive data on the speedup?

-Steve


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Index.list in JAR files

Posted by Peter Donald <pe...@apache.org>.
On Tue, 11 Dec 2001 18:05, Steve Loughran wrote:
> When exactly does the classloader use this? 

I don't think the default classloaders do - not sure. Mainly used for applet 
classloaders.

> i.e how much speedup does it really give?

Large speedups if the classes are stored in multiple jar files and 
the file you are looking for is not in some of the files. Essentially the 
indexes are primarily used as a negative cahce. So if class not in index then 
don't download rest of jar just yet.

> Does anyone have any quantitive data on the speedup?

Never seen any details unfortunatly ;(

-- 
Cheers,

Pete

-----------------------------------------------
|  If you turn on the light quickly enough,   |
|    you can see what the dark looks like.    |
-----------------------------------------------

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>