[TxMt] GetBundle Suggestions

Hans-Jörg Bibiko bibiko at eva.mpg.de
Wed Jul 2 12:43:58 UTC 2008


Hi,

I played with 'Show Bundles on Repository' a bit.
The only thing is that it is a bit slow.

Is there a reason for using svn list/cat?

My suggestion would it be is to use a direct way by using  
Net::HTTP.get(URI.parse(url)).
It is much mor faster. Furthermore I implemented the entire download  
stuff in many threads. By using these threads the descriptions are  
downloaded in roughly 10sec (depending on the band-width of course).

Then I wrote a routine to install one or more bundles (also while  
fetching the descriptions).

To be fast as possible I cache the already downloaded descriptions.  
Thus if one invokes that command it looks for a description in the  
cache. If something was found one sees it at once, but the  
descriptions are still updated in the background.

I also modified the NIB a bit. If the fetching was finished the  
progress bar also disappears. Furthermore I include a further  
progress bar to indicate the install status.

Of course, there are some tiny unsolved issues, e.g. while fetching I  
select one or more bundle; if the a result of a thread is written to  
the dialog my selection could disappear.

Anyway, if you want to look at it here is a 10MB movie

http://www.bibiko.de/TM_GetBundle.mov

Is someone interested?
Will the getBundle issue be integrated in TM2?

Cheers,

--Hans



More information about the textmate mailing list